summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Chang <ochang@chromium.org>2015-12-18 16:00:30 -0800
committerOliver Chang <ochang@chromium.org>2015-12-18 16:00:30 -0800
commitb77959c00f986a9982a237f73864349593776e7b (patch)
tree357e4a6ac90462be74dc8fe33d2659e8fe0dd724
parentdf663f5fcfc860249ab318407353f0aca907522d (diff)
downloadpdfium-b77959c00f986a9982a237f73864349593776e7b.tar.xz
Merge to XFA: Add a LSan suppressions file.
Also defines ADDRESS_SANITIZER and LEAK_SANITIZER for ASan builds. TBR=thestig@chromium.org Original Review URL: https://codereview.chromium.org/1540433004 . (cherry picked from commit 38cecc343561395cad8a33889f91c1a254ca1f73) Review URL: https://codereview.chromium.org/1540433005 .
-rw-r--r--build/standalone.gypi4
-rw-r--r--tools/lsan/lsan_suppressions.txt19
2 files changed, 23 insertions, 0 deletions
diff --git a/build/standalone.gypi b/build/standalone.gypi
index de638de97c..71b207e912 100644
--- a/build/standalone.gypi
+++ b/build/standalone.gypi
@@ -274,6 +274,10 @@
],
}],
['asan==1', {
+ 'defines': [
+ 'ADDRESS_SANITIZER',
+ 'LEAK_SANITIZER',
+ ],
'cflags': [
'-fsanitize=address',
'-gline-tables-only',
diff --git a/tools/lsan/lsan_suppressions.txt b/tools/lsan/lsan_suppressions.txt
new file mode 100644
index 0000000000..1a32a9cd7a
--- /dev/null
+++ b/tools/lsan/lsan_suppressions.txt
@@ -0,0 +1,19 @@
+################################################################################
+# LeakSanitizer Suppressions file.
+# If a CL introduces a new leak that isn't the fault of the CL itself (e.g. a
+# new testcase), please add a suppression to this file so that it can be
+# addressed in a future CL.
+#
+# For this file to take effect,
+# LSAN_OPTIONS='suppressions=/path/to/lsan_suppressions.txt' must be in the
+# environment.
+# See https://www.chromium.org/developers/testing/leaksanitizer for syntax.
+
+################################################################################
+# CJS_Object/CJS_EmbedObj wrapped by v8::Object currently leak. See bug 260.
+# Obvious leaks:
+leak:*FXJS_NewFxDynamicObj*
+
+# CJS_Field CFX_WideString::StringData leaks
+leak:*CJS_Document*getField_static*
+leak:*CJS_EventHandler*OnField*