Wireshark-bugs: [Wireshark-bugs] [Bug 2812] New: Uninitialized variables (Lint Warning 603)
Date: Mon, 18 Aug 2008 09:55:22 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2812

           Summary: Uninitialized variables (Lint Warning 603)
           Product: Wireshark
           Version: SVN
          Platform: PC
               URL: http://www.wireshark.org/lists/wireshark-
                    dev/200808/msg00135.html
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: High
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: christopher.maynard@xxxxxxxxx


Build Information:
SVN 26033
--
I ran lint on *.c, epan/*.c, epan/dissectors/packet-*.c, and
plugins/*/packet-*.c and the following files were identified by lint as having
uninitialized variables.

1) packet-acn.c(528): Warning 603: Symbol 'addr' (line 468) not initialized
2) packet-dnp.c(1560) : Warning 603: Symbol 'al_cto' (line 1255) not
initialized
3) packet-lapd.c(284) : Warning 603: Symbol 'data' (line 215) not initialized
4) randpkt.c(544) : Warning 603: Symbol 'ps_header' (line 444) not initialized

I checked them and I believe the warnings to be valid.
- Chris

(BTW: It is not my intent to waste anyone's time with having to look through
tons of lint output, most of it harmless, so rather than submit all lint output
for all files, I am attempting to identify the more harmful cases and submit
each type as I can go through them and try to verify them.  If anyone is
interested though, I can provide a tar-zip of lint output for each source file
that I have run lint against.  I am not always in the best position to identify
potential problems whereas the original author or core developers might be.  Or
you may simply have a particular interest in one or more dissectors and would
want to scan the output yourself.  In any case, the tar-zip is likely to be a
large file, so I'm not exactly sure where the best place to post it would be? 
If there's no place for it on www.wireshark.org, I can see about making it
available for ftp download from my company's ftp server.)


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.