Skip to content

Commit 98043b4

Browse files
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 (cherry picked from commit 03ab6b4) Co-authored-by: Victor Stinner <[email protected]>
1 parent 4f962ec commit 98043b4

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Update Valgrind suppression file to ignore a false alarm in
2+
:c:func:`PyUnicode_Decode` when using GCC builtin strcmp().

Misc/valgrind-python.supp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,17 @@
283283
fun:rl_initialize
284284
}
285285

286+
# Valgrind emits "Conditional jump or move depends on uninitialised value(s)"
287+
# false alarms on GCC builtin strcmp() function. The GCC code is correct.
288+
#
289+
# Valgrind bug: https://bugs.kde.org/show_bug.cgi?id=264936
290+
{
291+
bpo-38118: Valgrind emits false alarm on GCC builtin strcmp()
292+
Memcheck:Cond
293+
fun:PyUnicode_Decode
294+
}
295+
296+
286297
###
287298
### These occur from somewhere within the SSL, when running
288299
### test_socket_sll. They are too general to leave on by default.

0 commit comments

Comments
 (0)