diff options
author | John Bowler <jbowler@acm.org> | 2012-03-05 21:26:57 -0600 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2012-03-05 21:26:57 -0600 |
commit | 6225b0e61ed3341236d6553fae9e139b4de3ab30 (patch) | |
tree | 809151e9677af751737e0857af2c96f4ab35d964 /pngstruct.h | |
parent | d072048925d24b139afc90b37c86b46220969422 (diff) | |
download | libpng-6225b0e61ed3341236d6553fae9e139b4de3ab30.tar.gz |
[libpng16] Added code to validate the windowBits value passed to deflateInit2().
If the call to deflateInit2() is wrong a png_warning will be issued
(in fact this is harmless, but the PNG data produced may be sub-optimal).
Diffstat (limited to 'pngstruct.h')
-rw-r--r-- | pngstruct.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pngstruct.h b/pngstruct.h index 87ea234b0..fb29b5477 100644 --- a/pngstruct.h +++ b/pngstruct.h @@ -65,9 +65,9 @@ struct png_struct_def png_uint_32 flags; /* flags indicating various things to libpng */ png_uint_32 transformations; /* which transformations to perform */ - z_stream zstream; /* pointer to decompression structure (below) */ + z_stream zstream; /* decompression structure */ png_bytep zbuf; /* buffer for zlib */ - uInt zbuf_size; /* size of zbuf (typically 65536) */ + uInt zbuf_size; /* size of zbuf */ #ifdef PNG_WRITE_SUPPORTED int zlib_level; /* holds zlib compression level */ |