aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/Pl_DCT.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2020-10-22 12:27:25 +0200
committerJay Berkenbilt <ejb@ql.org>2020-10-22 12:31:52 +0200
commit232f5fc9f3bed8e1b02bca5d10b2eca444e30f95 (patch)
treea28fd45c3425ef3445b53d58482e9d442ef63d5b /libqpdf/Pl_DCT.cc
parentc1684eae9144129027642f5069a0fd97f0559ec8 (diff)
downloadqpdf-232f5fc9f3bed8e1b02bca5d10b2eca444e30f95.tar.zst
Handle jpeg library fuzz false positives
The jpeg library has some assembly code that is missed by the compiler instrumentation used by memory sanitization. There is a runtime environment variable that is used to work around this issue.
Diffstat (limited to 'libqpdf/Pl_DCT.cc')
-rw-r--r--libqpdf/Pl_DCT.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libqpdf/Pl_DCT.cc b/libqpdf/Pl_DCT.cc
index 7231486d..2ddafecb 100644
--- a/libqpdf/Pl_DCT.cc
+++ b/libqpdf/Pl_DCT.cc
@@ -8,6 +8,7 @@
#include <stdexcept>
#include <stdlib.h>
#include <string>
+#include <cstring>
#if BITS_IN_JSAMPLE != 8
# error "qpdf does not support libjpeg built with BITS_IN_JSAMPLE != 8"