lib: zlib_inflate "r.base" uninitialized compile warnings
Quoted 2 lines · Kees Cook
Eliminates compile-time warnings from "r" being uninitialized.
What version of gcc are you using?
I get no warnings on 3.4.4:
CC [M] lib/zlib_inflate/infblock.o CC [M] lib/zlib_inflate/infcodes.o CC [M] lib/zlib_inflate/inffast.o CC [M] lib/zlib_inflate/inflate.o CC [M] lib/zlib_inflate/inflate_sync.o CC [M] lib/zlib_inflate/inftrees.o CC [M] lib/zlib_inflate/infutil.o CC [M] lib/zlib_inflate/inflate_syms.o LD [M] lib/zlib_inflate/zlib_inflate.o
Building modules, stage 2.
MODPOST
CC lib/zlib_inflate/zlib_inflate.mod.o
LD [M] lib/zlib_inflate/zlib_inflate.ko
agard linux-2.6.15-rc7 # gcc --version
gcc (GCC) 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)
Looks like a gcc bug that was fixed?
Quoted 1 line · James Lamanna
What version of gcc are you using?
gcc (GCC) 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)
Quoted 1 line
Looks like a gcc bug that was fixed?
I guess it's been introduced. ;)
Signature · 1 line
Kees Cook @outflux.net
Quoted 8 lines · Kees Cook
Quoted 1 line · James Lamanna
What version of gcc are you using?
gcc (GCC) 4.0.3 20051201 (prerelease) (Debian 4.0.2-5)
Quoted 1 line
Looks like a gcc bug that was fixed?
I guess it's been introduced. ;)
4.0.x is very bad in that area - it's crying "wolf" a _lot_ and genuine cases of uninitialized variables being used are drowning in the noise; compared to 3.x it's a serious regression.