Wireshark mailing list archives
clang analysis
From: Kaul <mykaul () gmail com>
Date: Sat, 1 May 2010 22:57:51 +0300
Hi, I've ran clang static analyser on SVN latest and got the following: Bug Summary Bug TypeQuantityDisplay? All Bugs2769 Dead store Dead assignment1692 Dead increment998 Dead initialization25 Dead nested assignment32 Logic errors Null dereference21 Use of uninitialized value1 Obviously, there's little chance I can fix all of them. I can try fix a few from the dissectors I'm familiar with, though. Some (most of the dead) might/probably are removed by current generation compiler, so aren't so important to fix, although it'd be nice to. The rest may be a bit more important to fix. Example of such bug (from packet-bgp.c, which should REALLY be refactored to functions!): 2235 ti = proto_tree_add_text(subtree2, tvb, o + i + aoff, tlen, 2236 "Cluster list: %s", cluster_list_emstr->str); 15 Dereference of null pointer (cluster_list_emstr)
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- clang analysis Kaul (May 01)
- Wireshark can not open file David (May 01)
- Re: Wireshark can not open file Stephen Fisher (May 02)
- Re: clang analysis Stephen Fisher (May 04)
- Re: clang analysis Kaul (May 09)
- Re: clang analysis Stephen Fisher (May 09)
- Re: clang analysis Bill Meier (May 11)
- Re: clang analysis Kaul (May 09)
- Wireshark can not open file David (May 01)