[libpng16] Fix typo
This commit is contained in:
parent
7b8b7115d9
commit
c5f801c82b
@ -374,7 +374,7 @@ BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace,
|
|||||||
/* row_bytes is the width x number of channels x (bit-depth / 8) */
|
/* row_bytes is the width x number of channels x (bit-depth / 8) */
|
||||||
row_bytes = width * channels * ((bit_depth <= 8) ? 1 : 2);
|
row_bytes = width * channels * ((bit_depth <= 8) ? 1 : 2);
|
||||||
|
|
||||||
if (!rowbytes || height > ((size_t)(-1))/row_bytes) /* too big */ {
|
if (!row_bytes || height > ((size_t)(-1))/row_bytes) /* too big */ {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if ((png_pixels = (png_byte *)
|
if ((png_pixels = (png_byte *)
|
||||||
|
Loading…
Reference in New Issue
Block a user