mirror of
https://github.com/randy408/libspng
synced 2025-03-28 21:13:20 +00:00
fix interlaced write overflow
This commit is contained in:
parent
b530b94fb5
commit
2ef4255576
@ -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++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user