Bug 111277

Summary: undefined code
Product: [Fedora] Fedora Reporter: d.binderman
Component: tcpdumpAssignee: Harald Hoyer <harald>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-12-03 09:02:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description d.binderman 2003-12-01 18:22:51 UTC
Description of problem:
I just tried to compile package tcpdump-3.7.2-7.1 from Fedora.

The compiler said

1.

print-isoclns.c:1300: warning: operation on `tptr' may be undefined

The source code is

                    tptr+=*tptr++;

It is unwise to do ++ and += on the same variable at the same time.

This code might be better as 

                    tptr += *tptr + 1;



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

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Harald Hoyer 2003-12-02 09:25:48 UTC
please report upstream on www.tcpdump.org

Comment 2 d.binderman 2003-12-02 16:56:40 UTC
>please report upstream on www.tcpdump.org


I tried this, and I couldn't get it to work.

Could I ask you to submit this bug report for
for me, please ? 

Comment 4 Harald Hoyer 2003-12-10 10:37:32 UTC
The current CVS and x.8 branch versions have this fixed.