mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Fix stack smaller in write png_copy_row
This also resulted in PNG data with random row bytes. Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
@@ -720,7 +720,8 @@ copy_row(png_const_structrp png_ptr, png_bytep row_buffer,
|
||||
unsigned int pixel_depth)
|
||||
{
|
||||
/* Copy row[x..x+count] pixels to row_buffer. */
|
||||
png_copy_row(png_ptr, row_buffer, row, x, count, pixel_depth, 1/*clear*/);
|
||||
png_copy_row(png_ptr, row_buffer, row, x, count, pixel_depth, 1/*clear*/,
|
||||
0/* x_in_dest; row[x]->row_buffer */);
|
||||
}
|
||||
#endif /* WRITE_TRANSFORMS */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user