Red Hat Bugzilla – Bug 113665
broken data field read ?
Last modified: 2007-11-30 17:10:35 EST
Description of problem:
I just tried to compile package dhcp-3.0pl2-6.16, from Redhat
Fedora Core 1.
The compiler said
packet.c(153): remark #592: variable "ip" is used before its value is set
The source code is
IP_V_SET (&ip, 4);
#define IP_V_SET(iph,x) ((iph)->ip_fvhl = ((iph)->ip_fvhl & 0x0F) |
((x) << 4))
I think field ip_fvhl is being read from before it is initialised.
memset( &ip, sizeof ip, 0);
just after the declaration of ip.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Update latest code in Fedora core with this patch.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.