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:
John Bowler
2015-12-06 11:12:17 -08:00
parent 66b53bdd37
commit b8ab93dc6f
4 changed files with 24 additions and 13 deletions

View File

@@ -3114,7 +3114,7 @@ copy_row(png_const_structrp png_ptr, png_bytep dp, png_const_bytep sp,
# else
PNG_PIXEL_DEPTH(*png_ptr),
# endif
clear/*clear partial byte at end of row*/);
clear/*clear partial byte at end of row*/, 1/*sp -> dp[x]*/);
}
#ifdef PNG_READ_INTERLACING_SUPPORTED