diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-12-13 14:25:47 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-12-13 19:48:31 +0100 |
commit | e80c7360235d5c3d6d5e2a615ad3909c3487dc7d (patch) | |
tree | 8e7219120f7f699ee726bdaf57888123c8d9124f /image/encoders/png/nsPNGEncoder.h | |
parent | b62191e06e90cc0847e17d07e9db97747f581ab7 (diff) | |
download | UXP-e80c7360235d5c3d6d5e2a615ad3909c3487dc7d.tar UXP-e80c7360235d5c3d6d5e2a615ad3909c3487dc7d.tar.gz UXP-e80c7360235d5c3d6d5e2a615ad3909c3487dc7d.tar.lz UXP-e80c7360235d5c3d6d5e2a615ad3909c3487dc7d.tar.xz UXP-e80c7360235d5c3d6d5e2a615ad3909c3487dc7d.zip |
Avoid overflow in nsPNGEncoder::WriteCallback.
Diffstat (limited to 'image/encoders/png/nsPNGEncoder.h')
-rw-r--r-- | image/encoders/png/nsPNGEncoder.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/image/encoders/png/nsPNGEncoder.h b/image/encoders/png/nsPNGEncoder.h index 95e7d5c19..8c2239c11 100644 --- a/image/encoders/png/nsPNGEncoder.h +++ b/image/encoders/png/nsPNGEncoder.h @@ -54,6 +54,7 @@ protected: static void WarningCallback(png_structp png_ptr, png_const_charp warning_msg); static void ErrorCallback(png_structp png_ptr, png_const_charp error_msg); static void WriteCallback(png_structp png, png_bytep data, png_size_t size); + void NullOutImageBuffer(); void NotifyListener(); png_struct* mPNG; |