Wireshark-dev: [Wireshark-dev] Wireshark compatible with Purify?

From: Kovarththanan Rajaratnam <krj@xxxxxxxxxxxxx>
Date: Tue, 19 May 2009 16:26:43 +0200
Hello,

I thought I'd give Wireshark a spin through Purify and the initial results seems rather fishy (see wireshark_view.txt). There are a vast number of errors/warnings, which leads me to believe I must be doing something wrong. I've noticed in the past that some people have been running Wireshark under valgrind, which surely must have caught these errors if they existed. So my question is whether anyone has ever tried running Wireshark under Purify?

Some info:

- Windows XP SP2
- SVN revision 28407
- MSVC 6.0
- PSDK Feb. 2003

I also had to patch config.nmake (see config.nmake.patch) to get Purify working.

--
Best Regards,
Kovarththanan Rajaratnam

Attachment: config.nmake.patch
Description: application/xxxxx

[I] Starting Purify'd s:\git\wireshark\wireshark-gtk2\wireshark.exe at 19-05-2009 08:04:47
[I] Starting main
[W] UMR: Uninitialized memory read in ExtCreateRegion {11 occurrences}
[E] ABR: Array bounds read in wrs_check_charset {666 occurrences}
[E] ABR: Array bounds read in wrs_strcmp {171 occurrences}
[E] ABR: Array bounds read in wrs_strcmp {137 occurrences}
[E] ABR: Array bounds read in wrs_check_charset {8135 occurrences}
[E] ABR: Array bounds read in wrs_strcmp {17089 occurrences}
[E] ABR: Array bounds read in wrs_strcmp {21910 occurrences}
[E] ABR: Array bounds read in wrs_str_hash {7 occurrences}
[E] ABR: Array bounds read in wrs_str_hash {1 occurrence}
[E] ABR: Array bounds read in wrs_str_hash {1 occurrence}
[E] ABR: Array bounds read in wrs_str_hash {1 occurrence}
[E] ABR: Array bounds read in wrs_str_hash {1 occurrence}
[E] ABR: Array bounds read in wrs_check_charset {9 occurrences}
[E] ABR: Array bounds read in wrs_strcmp {15 occurrences}
[E] ABR: Array bounds read in wrs_strcmp {314 occurrences}
[E] ABR: Array bounds read in wrs_check_charset {689 occurrences}
[E] ABR: Array bounds read in wrs_strcmp {91 occurrences}
[E] ABR: Array bounds read in wrs_str_hash {8 occurrences}
[E] ABR: Array bounds read in wrs_str_hash {8 occurrences}
[E] ABR: Array bounds read in wrs_str_hash {8 occurrences}
[E] ABR: Array bounds read in wrs_str_hash {8 occurrences}
[E] ABR: Array bounds read in wrs_check_charset {4 occurrences}
[E] ABR: Array bounds read in wrs_strcmp {3 occurrences}
[W] UMR: Uninitialized memory read in dfw_append_const {38 occurrences}
[W] UMR: Uninitialized memory read in dfw_append_const {59 occurrences}
[E] ABR: Array bounds read in wrs_strcmp {306 occurrences}
[W] UMR: Uninitialized memory read in dfw_append_const {22 occurrences}
[W] UMR: Uninitialized memory read in dfw_append_const {1 occurrence}
[E] ABR: Array bounds read in wrs_check_charset {327 occurrences}
[E] ABR: Array bounds read in wrs_strcmp {12 occurrences}
[E] ABR: Array bounds read in wrs_strcmp {6 occurrences}
[W] UMR: Uninitialized memory read in dfw_append_const {20 occurrences}
[W] UMR: Uninitialized memory read in dfw_append_const {1 occurrence}
[W] UMR: Uninitialized memory read in dfw_append_const {1 occurrence}
[W] UMR: Uninitialized memory read in dfw_append_const {1 occurrence}
[W] UMR: Uninitialized memory read in dfw_append_const {3 occurrences}
[W] UMR: Uninitialized memory read in dfw_append_const {2 occurrences}
[E] ABR: Array bounds read in wrs_strcmp {1 occurrence}
[W] UMR: Uninitialized memory read in dfw_append_const {1 occurrence}
[E] ABR: Array bounds read in wrs_strcmp {1 occurrence}
[W] UMR: Uninitialized memory read in ExtCreateRegion {1 occurrence}
[W] UMR: Uninitialized memory read in ExtCreateRegion {36 occurrences}