|
|||||||||||
|
RE: Libnet 1.1.1 RC 5
From: Darren Bounds <libnet(at)intrusense.com>
Date: Thu Jun 19 2003 - 07:59:22 EDT
I believe those warnings are the result of the use of the "bad" label prior to defining p: if ((payload && !payload_s) || (!payload && payload_s)) {
sprintf(l->err_buf, "%s(): payload inconsistency\n",
__FUNCTION__);
...
p = libnet_pblock_probe(l, ptag, n,
return (-1);
Going to 'bad' at that stage, from the compilers perspective, could theoretically return 'p' uninitialized: bad: return (ptag ? ptag : libnet_pblock_update(l, p, h, LIBNET_PBLOCK_ICMPV4_TIMXCEED_H)); Thanks,
Darren Bounds
-- Intrusense - Securing Business As Usual -----Original Message----- From: Mike Schiffman [mailto:mike@infonexus.com] Sent: Thursday, June 19, 2003 3:36 AM To: 'Frédéric Raynal' Cc: 'Darrin Miller'; libnet@lists.securityfocus.com Subject: RE: Libnet 1.1.1 RC 5 Thanks Fred. WRT the ICMP warnings -- I saw these and I'm also not sure why the compiler complains. Anyone smart out there? tradecraft:~/Code/Libnet-1.1.1-RC-005/src> touch libnet_build_icmp.c; make gcc -DHAVE_CONFIG_H -I. -I. -I../include -g -O2 -Wall -c libnet_build_icmp.c libnet_build_icmp.c: In function `libnet_build_icmpv4_unreach': libnet_build_icmp.c:268: warning: `p' might be used uninitialized in this function libnet_build_icmp.c: In function `libnet_build_icmpv4_timeexceed': libnet_build_icmp.c:367: warning: `p' might be used uninitialized in this function libnet_build_icmp.c: In function `libnet_build_icmpv4_redirect': libnet_build_icmp.c:464: warning: `p' might be used uninitialized in this function -- Mike Schiffman, CISSP http://www.packetfactory.net/schiffman.html -----Original Message----- From: Frédéric Raynal [mailto:pappy-ml@security-labs.org] Sent: Thursday, June 19, 2003 12:12 AM To: Mike Schiffman Cc: 'Darrin Miller'; libnet@lists.securityfocus.com Subject: Re: Libnet 1.1.1 RC 5 On Wed, Jun 18, 2003 at 08:18:10PM -0700, Mike Schiffman wrote:Received on Thu Jun 19 08:10:20 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:24 EDT |
||||||||||
|
|||||||||||