fix parcelReadData size checking

This commit is contained in:
Thog 2019-07-18 18:36:03 +02:00 committed by fincs
parent 74337842a0
commit c73b8ceeb9

View File

@ -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)