Bug 77570 - bad source code
bad source code
Status: CLOSED UPSTREAM
Product: Red Hat Linux
Classification: Retired
Component: tcpdump (Show other bugs)
8.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-11-09 07:47 EST by d.binderman
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-03-10 10:32:41 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description d.binderman 2002-11-09 07:47:29 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.6 [en-gb]C-CCK-MCD NetscapeOnline.co.uk  (Win98; I)

Description of problem:

Hello there,

I just tried to compile package tcpdump-3.6.3-3 from Redhat 8.0.

Here are some of the compiler messages.

print-ip6opts.c:130: warning: `optlen' might be used uninitialized in this function

Here is a patch which fixes the messages.

*** ./tcpdump-3.6.2/print-ip6opts.c.old	2002-11-08 08:37:25.000000000 +0000
--- ./tcpdump-3.6.2/print-ip6opts.c	2002-11-08 08:38:44.000000000 +0000
***************
*** 127,133 ****
  ip6_opt_print(const u_char *bp, int len)
  {
      int i;
!     int optlen;
  
      for (i = 0; i < len; i += optlen) {
  	switch (bp[i]) {
--- 127,133 ----
  ip6_opt_print(const u_char *bp, int len)
  {
      int i;
!     int optlen = 0;
  
      for (i = 0; i < len; i += optlen) {
  	switch (bp[i]) {


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. compile the package
2.
3.
	

Additional info:
Comment 1 Harald Hoyer 2003-03-10 10:32:41 EST
please report these kind of things upstream

Note You need to log in before you can comment on or make changes to this bug.