diff options
author | John Bowler <jbowler@acm.org> | 2012-03-10 20:03:06 -0600 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2012-03-10 20:03:06 -0600 |
commit | 9ff37ea94fccb53e4eaa915c5ff09db426ff49f9 (patch) | |
tree | 536775ccff16702e439a8a35266364639c0aaf62 /pngtrans.c | |
parent | 35f2e1768b9cb2da5cedc6f0c1c2d88a6ce27bb0 (diff) | |
download | libpng-9ff37ea94fccb53e4eaa915c5ff09db426ff49f9.tar.gz |
[libpng16] Fix an off-by-one error in the palette index checking function.
Diffstat (limited to 'pngtrans.c')
-rw-r--r-- | pngtrans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pngtrans.c b/pngtrans.c index 838be9f1d..9a6c1d20d 100644 --- a/pngtrans.c +++ b/pngtrans.c @@ -635,7 +635,7 @@ png_do_check_palette_indexes(png_structrp png_ptr, png_row_infop row_info) * forms produced on either GCC or MSVC. */ int padding = (-row_info->pixel_depth * row_info->width) & 7; - png_bytep rp = png_ptr->row_buf + 1 + row_info->rowbytes; + png_bytep rp = png_ptr->row_buf + row_info->rowbytes; switch (row_info->bit_depth) { |