Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2016 09:59:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 210798] devel/gdb: Uninitialized variables found presenting possible security issues or bugs
Message-ID:  <bug-210798-13-OxW5jisO7E@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-210798-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-210798-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210798

--- Comment #8 from Mark Millard <markmi@dsl-only.net> ---
(In reply to luca.pizzamiglio from comment #6)

Beyond the amd64 test info I listed in comment 5: building on/for armv6 (wi=
th
-mcpu=3Dcortex-a7 in use) reports things suggesting some 32-bit vs. 64-bit =
issues
may exist when int/long are 32-bit but long long is 64: labs use that may
truncate values. [powerpc (non-64) likely would get the same.] There are a
couple of other types of differences as well.

[I tried to eliminate the escape sequences form the messages listed below.]

inflate.c:1507:61: warning: shifting a negative signed value is undefined
[-Wshift-negative-value]
checking stddef.h usability... ./simple-object-xcoff.c:330:12: warning: usi=
ng
extended field designator is an extension [-Wextended-offsetof]
./simple-object-xcoff.c:332:39: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:335:29: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:342:12: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:344:39: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:347:29: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:475:32: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:477:30: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:482:32: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:484:30: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:598:21: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:600:21: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:603:21: warning: using extended field designator is=
 an
extension [-Wextended-offsetof
./simple-object-xcoff.c:608:21: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:610:21: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:613:21: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:663:21: warning: using extended field designator is=
 an
extension [-Wextended-offsetof
./simple-object-xcoff.c:665:21: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:670:21: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:672:21: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:683:19: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
./simple-object-xcoff.c:685:19: warning: using extended field designator is=
 an
extension [-Wextended-offsetof]
elf32-arm.c:10901:31: warning: absolute value function 'labs' given an argu=
ment
of type 'bfd_signed_vma' (aka 'long long') but has parameter of type 'long'
elf32-arm.c:10986:31: warning: absolute value function 'labs' given an argu=
ment
of type 'bfd_signed_vma' (aka 'long long') but has parameter of type 'long'
elf32-arm.c:11073:30: warning: absolute value function 'labs' given an argu=
ment
of type 'bfd_signed_vma' (aka 'long long') but has parameter of type 'long'
checking whether wcsspn is declared without a macro... rl78-dis.c:232:44:
warning: use of logical '||' with constant operand [-Wconstant-logical-oper=
and]
microblaze-tdep.c:94:28: warning: format string is not a string literal
[-Wformat-nonliteral]
msp430-tdep.c:401:24: warning: comparison of constant 16 with expression of
type 'MSP430_Size' is always false
[-Wtautological-constant-out-of-range-compare]
score-tdep.c:819:12: warning: comparison of unsigned expression < 0 is alwa=
ys
false [-Wtautological-compare]
sh64-tdep.c:977:42: warning: comparison of unsigned expression >=3D 0 is al=
ways
true [-Wtautological-compare]
v850-tdep.c:562:35: warning: comparison of unsigned expression >=3D 0 is al=
ways
true [-Wtautological-compare]
v850-tdep.c:562:66: warning: comparison of unsigned expression >=3D 0 is al=
ways
true [-Wtautological-compare]
remote-mips.c:500:37: warning: format string is not a string literal
[-Wformat-nonliteral]
xcoffread.c:1027:41: warning: variable 'main_aux' is uninitialized when used
here [-Wuninitialized]
./tui/tui-stack.c:419:16: warning: expression which evaluates to zero treat=
ed
as a null pointer constant of type 'CORE_ADDR * ' (aka 'unsigned long long =
*')
dtrace-probe.c:424:52: warning: while loop has empty body [-Wempty-body]
main.c:229:56: warning: adding 'int' to a string does not append to the str=
ing
[-Wstring-plus-int]
ada-lang.c:2489:50: warning: shifting a negative signed value is undefined
[-Wshift-negative-value]
ada-lang.c:2503:46: warning: shifting a negative signed value is undefined
[-Wshift-negative-value]

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210798-13-OxW5jisO7E>