Gentoo Archives: gentoo-user

From: Elias Diem <lists@×××××××××.ch>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Maybe bug? (glibc related?)
Date: Mon, 21 Dec 2015 17:34:37
Message-Id: 20151221173509.GA3444@webconect.local
1 Hi
2
3 I just got the following while running Vim's testsuite.
4
5 <output>
6 *** buffer overflow detected ***: vim terminated; report to <http://bugs.gentoo.org/>
7 Makefile:151: recipe for target 'af.ck' failed
8 make[2]: *** [af.ck] Killed
9 </output>
10
11 The compiler gave me the following warning.
12
13 <output>
14 gcc -c -I. -Iproto -DHAVE_CONFIG_H -O1 -o objects/if_cscope.o if_cscope.c
15 In file included from /usr/include/string.h:639:0,
16 from os_unix.h:542,
17 from vim.h:282,
18 from eval.c:14:
19 In function ‘strcpy’,
20 inlined from ‘add_nr_var’ at eval.c:24396:5,
21 inlined from ‘call_user_func’ at eval.c:24061:5:
22 /usr/include/bits/string3.h:110:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer
23 return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
24 ^
25 In function ‘strcpy’,
26 inlined from ‘call_user_func’ at eval.c:24067:5:
27 /usr/include/bits/string3.h:110:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer
28 return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
29 ^
30 In function ‘strcpy’,
31 inlined from ‘add_nr_var’ at eval.c:24396:5,
32 inlined from ‘call_user_func’ at eval.c:24082:5:
33 /usr/include/bits/string3.h:110:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer
34 return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
35 ^
36 In function ‘strcpy’,
37 inlined from ‘add_nr_var’ at eval.c:24396:5,
38 inlined from ‘call_user_func’ at eval.c:24084:5:
39 /usr/include/bits/string3.h:110:3: warning: call to __builtin___strcpy_chk will always overflow destination buffer
40 return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
41 ^
42 </output>
43
44 This seems to only happen with -O1. I don't get this
45 behaviour with -O2.
46
47 Do you need more info?
48
49 Should I file a bug?
50
51 --
52 Greetings
53 Elias

Replies

Subject Author
Re: [gentoo-user] Maybe bug? (glibc related?) lee <lee@××××××××.de>