From Bugzilla Helper: User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk (Win98; I) Description of problem: I just tried to compile package lha-1.00-17, from the new Redhat 7.2 for Alpha, with the new gcc 3.2 compiler. It said lharc.o: In function `main': lharc.o(.text+0x1a4): the `gets' function is dangerous and should not be used. I think gets should be replaced by fgets in the usual way. Further, it also said lhadd.c:86: warning: `old_header' might be used uninitialized in this function lhadd.c:87: warning: `cmp' might be used uninitialized in this function lhadd.c:458: warning: `nafp' might be used uninitialized in this function lhadd.c:462: warning: `new_archive_size' might be used uninitialized in this function lhadd.c:583: warning: `nafp' might be used uninitialized in this function lhadd.c:584: warning: `new_archive_size' might be used uninitialized in this function lhext.c:167: warning: `crc' might be used uninitialized in this function header.c:671: warning: `header_size' might be used uninitialized in this function header.c:672: warning: `name_length' might be used uninitialized in this function dhuf.c:90: warning: `b' might be used uninitialized in this function huf.c:125: warning: `flags' might be used uninitialized in this function I just tried to compile package lha-1.00-17, from the new Redhat 7.2 for Alpha, with the new gcc 3.2 compiler. It said lharc.o: In function `main': lharc.o(.text+0x1a4): the `gets' function is dangerous and should not be used. I think gets should be replaced by fgets in the usual way. Further, it also said lhadd.c:86: warning: `old_header' might be used uninitialized in this function lhadd.c:87: warning: `cmp' might be used uninitialized in this function lhadd.c:458: warning: `nafp' might be used uninitialized in this function lhadd.c:462: warning: `new_archive_size' might be used uninitialized in this function lhadd.c:583: warning: `nafp' might be used uninitialized in this function lhadd.c:584: warning: `new_archive_size' might be used uninitialized in this function lhext.c:167: warning: `crc' might be used uninitialized in this function header.c:671: warning: `header_size' might be used uninitialized in this function header.c:672: warning: `name_length' might be used uninitialized in this function dhuf.c:90: warning: `b' might be used uninitialized in this function huf.c:125: warning: `flags' might be used uninitialized in this function I just tried to compile package lha-1.00-17, from the new Redhat 7.2 for Alpha, with the new gcc 3.2 compiler. It said lharc.o: In function `main': lharc.o(.text+0x1a4): the `gets' function is dangerous and should not be used. I think gets should be replaced by fgets in the usual way. Further, it also said lhadd.c:86: warning: `old_header' might be used uninitialized in this function lhadd.c:87: warning: `cmp' might be used uninitialized in this function lhadd.c:458: warning: `nafp' might be used uninitialized in this function lhadd.c:462: warning: `new_archive_size' might be used uninitialized in this function lhadd.c:583: warning: `nafp' might be used uninitialized in this function lhadd.c:584: warning: `new_archive_size' might be used uninitialized in this function lhext.c:167: warning: `crc' might be used uninitialized in this function header.c:671: warning: `header_size' might be used uninitialized in this function header.c:672: warning: `name_length' might be used uninitialized in this function dhuf.c:90: warning: `b' might be used uninitialized in this function huf.c:125: warning: `flags' might be used uninitialized in this function Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. compile with new gcc 3.2 compiler and flags -g -O2 -Wall 2. 3. Additional info: I just tried to compile package lha-1.00-17, from the new Redhat 7.2 for Alpha, with the new gcc 3.2 compiler. It said lharc.o: In function `main': lharc.o(.text+0x1a4): the `gets' function is dangerous and should not be used. I think gets should be replaced by fgets in the usual way. Further, it also said lhadd.c:86: warning: `old_header' might be used uninitialized in this function lhadd.c:87: warning: `cmp' might be used uninitialized in this function lhadd.c:458: warning: `nafp' might be used uninitialized in this function lhadd.c:462: warning: `new_archive_size' might be used uninitialized in this function lhadd.c:583: warning: `nafp' might be used uninitialized in this function lhadd.c:584: warning: `new_archive_size' might be used uninitialized in this function lhext.c:167: warning: `crc' might be used uninitialized in this function header.c:671: warning: `header_size' might be used uninitialized in this function header.c:672: warning: `name_length' might be used uninitialized in this function dhuf.c:90: warning: `b' might be used uninitialized in this function huf.c:125: warning: `flags' might be used uninitialized in this function
Verified this seems to cause no exposure its just lousy programming Also fixed in current releases