mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
fix parcelReadData size checking
This commit is contained in:
parent
74337842a0
commit
c73b8ceeb9
@ -103,7 +103,7 @@ void* parcelReadData(Parcel *ctx, void* data, size_t data_size)
|
||||
|
||||
aligned_data_size = (data_size+3) & ~3;
|
||||
|
||||
if (ctx->pos + aligned_data_size >= ctx->payload_size)
|
||||
if (ctx->pos + aligned_data_size > ctx->payload_size)
|
||||
return NULL;
|
||||
|
||||
if (data)
|
||||
|
Loading…
Reference in New Issue
Block a user