summaryrefslogtreecommitdiff
path: root/curl/0105-curl-7.65.0-lib1560-valgrind.patch
blob: 92089c2df1fb9505996ca872a1e74773f1c0fb2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
From f55cca0e86f59ec11ffafd5c0503c39ca3723e2e Mon Sep 17 00:00:00 2001
From: Kamil Dudka <kdudka@redhat.com>
Date: Mon, 4 Feb 2019 17:32:56 +0100
Subject: [PATCH] libtest: compile lib1560.c with -fno-builtin-strcmp

... to prevent valgrind from reporting false positives on x86_64:

Conditional jump or move depends on uninitialised value(s)
   at 0x10BCAA: part2id (lib1560.c:489)
   by 0x10BCAA: updateurl (lib1560.c:521)
   by 0x10BCAA: set_parts (lib1560.c:630)
   by 0x10BCAA: test (lib1560.c:802)
   by 0x4923412: (below main) (in /usr/lib64/libc-2.28.9000.so)

Conditional jump or move depends on uninitialised value(s)
   at 0x10BCC3: part2id (lib1560.c:491)
   by 0x10BCC3: updateurl (lib1560.c:521)
   by 0x10BCC3: set_parts (lib1560.c:630)
   by 0x10BCC3: test (lib1560.c:802)
   by 0x4923412: (below main) (in /usr/lib64/libc-2.28.9000.so)
---
 tests/libtest/Makefile.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/libtest/Makefile.inc b/tests/libtest/Makefile.inc
index 080421b..ea3b806 100644
--- a/tests/libtest/Makefile.inc
+++ b/tests/libtest/Makefile.inc
@@ -528,6 +528,7 @@ lib1559_SOURCES = lib1559.c $(SUPPORTFIL
 lib1559_LDADD = $(TESTUTIL_LIBS)
 
 lib1560_SOURCES = lib1560.c $(SUPPORTFILES) $(TESTUTIL) $(WARNLESS)
+lib1560_CFLAGS = $(AM_CFLAGS) -fno-builtin-strcmp
 lib1560_LDADD = $(TESTUTIL_LIBS)
 
 lib1591_SOURCES = lib1591.c $(SUPPORTFILES) $(TESTUTIL) $(WARNLESS)
-- 
2.17.2

bgstack15