fix interlaced write overflow

This commit is contained in:
Randy 2022-01-22 18:38:22 +01:00
parent b530b94fb5
commit 2ef4255576

View File

@ -4600,7 +4600,7 @@ static int encode_row(spng_ctx *ctx, const void *row, size_t len)
const unsigned char *row_uc = row;
uint8_t sample;
memset(scanline, 0, len);
memset(scanline, 0, ctx->subimage[pass].scanline_width);
for(k=0; k < ctx->subimage[pass].width; k++)
{