summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-10-08 13:42:17 (GMT)
committerGitHub <noreply@github.com>2019-10-08 13:42:17 (GMT)
commit03ab6b4fc6f59a4452756e7a3a46310ce30ec4b2 (patch)
treec8150890ce4fd154fc03d2dec0ff916c3edba56c
parent8252c52e57283515ace5d4251584255dc5c60eb5 (diff)
downloadcpython-03ab6b4fc6f59a4452756e7a3a46310ce30ec4b2.zip
cpython-03ab6b4fc6f59a4452756e7a3a46310ce30ec4b2.tar.gz
cpython-03ab6b4fc6f59a4452756e7a3a46310ce30ec4b2.tar.bz2
bpo-38118: Ignore Valgrind false alarm in PyUnicode_Decode() (GH-16651)
Valgrind emits "Conditional jump or move depends on uninitialised value(s)" false alarms on GCC builtin strcmp() function. The GCC code is correct. Valgrind bug: https://bugs.kde.org/show_bug.cgi?id=264936
-rw-r--r--Misc/NEWS.d/next/Tools-Demos/2019-10-08-15-07-52.bpo-38118.pIZD6H.rst2
-rw-r--r--Misc/valgrind-python.supp11
2 files changed, 13 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tools-Demos/2019-10-08-15-07-52.bpo-38118.pIZD6H.rst b/Misc/NEWS.d/next/Tools-Demos/2019-10-08-15-07-52.bpo-38118.pIZD6H.rst
new file mode 100644
index 0000000..13adadb
--- /dev/null
+++ b/Misc/NEWS.d/next/Tools-Demos/2019-10-08-15-07-52.bpo-38118.pIZD6H.rst
@@ -0,0 +1,2 @@
+Update Valgrind suppression file to ignore a false alarm in
+:c:func:`PyUnicode_Decode` when using GCC builtin strcmp().
diff --git a/Misc/valgrind-python.supp b/Misc/valgrind-python.supp
index bc8f77f..38a5ea3 100644
--- a/Misc/valgrind-python.supp
+++ b/Misc/valgrind-python.supp
@@ -283,6 +283,17 @@
fun:rl_initialize
}
+# Valgrind emits "Conditional jump or move depends on uninitialised value(s)"
+# false alarms on GCC builtin strcmp() function. The GCC code is correct.
+#
+# Valgrind bug: https://bugs.kde.org/show_bug.cgi?id=264936
+{
+ bpo-38118: Valgrind emits false alarm on GCC builtin strcmp()
+ Memcheck:Cond
+ fun:PyUnicode_Decode
+}
+
+
###
### These occur from somewhere within the SSL, when running
### test_socket_sll. They are too general to leave on by default.