summarylogtreecommitdiffstats
path: root/spamprobe-png.patch
diff options
context:
space:
mode:
Diffstat (limited to 'spamprobe-png.patch')
-rw-r--r--spamprobe-png.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/spamprobe-png.patch b/spamprobe-png.patch
new file mode 100644
index 000000000000..a3cba4266ed9
--- /dev/null
+++ b/spamprobe-png.patch
@@ -0,0 +1,23 @@
+--- src/parser/PngParser.cc
++++ src/parser/PngParser.cc
+@@ -53,9 +53,9 @@ PngParser::~PngParser()
+ {
+ if (m_initialized) {
+ if (m_infoPtr) {
+- png_destroy_read_struct(&m_pngPtr, &m_infoPtr, png_infopp_NULL);
++ png_destroy_read_struct(&m_pngPtr, &m_infoPtr, NULL);
+ } else {
+- png_destroy_read_struct(&m_pngPtr, png_infopp_NULL, png_infopp_NULL);
++ png_destroy_read_struct(&m_pngPtr, NULL, NULL);
+ }
+ }
+ }
+@@ -104,7 +104,7 @@ void PngParser::tokenizeImage()
+ int bit_depth, color_type, interlace_type;
+
+ png_get_IHDR(m_pngPtr, m_infoPtr, &width, &height, &bit_depth, &color_type,
+- &interlace_type, int_p_NULL, int_p_NULL);
++ &interlace_type, NULL, NULL);
+
+ string base_token("image_0");
+ sendToken(base_token + "_height_" + num_to_string((int)width));