Wireshark-bugs: [Wireshark-bugs] [Bug 1077] Bad array initialisation leads to a crash

Date: Tue, 29 Aug 2006 12:18:47 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1077


florent.drouin@xxxxxxxxxx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from florent.drouin@xxxxxxxxxx  2006-08-29 12:18 GMT -------
The following patch solve this issue.
The GET_MSG_TYPE returns a pointer to a NULL string, and when displayed in
COL_INFO, the column buffer for COL_INFO is corrupted.
To have the message "Unknown message" instead, we just have to remove the last
NULL entry in the array "msg_types[]". As this array is not a value_string, the
last entry is not needed.

svn diff packet-alcap.c
Index: packet-alcap.c
===================================================================
--- packet-alcap.c      (revision 19047)
+++ packet-alcap.c      (working copy)
@@ -1286,7 +1286,7 @@
     { "MOA ", PI_CHAT },
     { "MOR ", PI_CHAT },
     { "MOD ", PI_CHAT },
-    { NULL, 0 }
+    /*    { NULL, 0 }*/
 };

 static void alcap_leg_tree(proto_tree* tree, tvbuff_t* tvb, const
alcap_leg_info_t* leg) {


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