summaryrefslogtreecommitdiffstats
path: root/image/encoders/png/nsPNGEncoder.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-12-13 14:25:47 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-12-13 19:48:31 +0100
commite80c7360235d5c3d6d5e2a615ad3909c3487dc7d (patch)
tree8e7219120f7f699ee726bdaf57888123c8d9124f /image/encoders/png/nsPNGEncoder.h
parentb62191e06e90cc0847e17d07e9db97747f581ab7 (diff)
downloadUXP-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.h1
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;