[Bug 210798] devel/gdb: Uninitialized variables found presenting possible security issues or bugs

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 12 09:59:58 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210798

--- Comment #8 from Mark Millard <markmi at 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 (with
-mcpu=cortex-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: using
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 argument
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 argument
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 argument
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-operand]
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 always
false [-Wtautological-compare]
sh64-tdep.c:977:42: warning: comparison of unsigned expression >= 0 is always
true [-Wtautological-compare]
v850-tdep.c:562:35: warning: comparison of unsigned expression >= 0 is always
true [-Wtautological-compare]
v850-tdep.c:562:66: warning: comparison of unsigned expression >= 0 is always
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 treated
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 string
[-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]

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


More information about the freebsd-ports-bugs mailing list