Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 2062] SNMP (libsmi) register_mibs() related crash

Date: Sun, 2 Dec 2007 16:41:21 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2062





------- Comment #1 from nikns@xxxxxxxxx  2007-12-02 16:41 GMT -------
This seems to fix crash:

--- epan/oids.c.orig    Sun Dec  2 17:26:20 2007
+++ epan/oids.c Sun Dec  2 17:28:56 2007
@@ -591,7 +591,7 @@ void register_mibs(void) {
                        if ( typedata && oid_data->value_hfid == -2 ) {
                                SmiNamedNumber* smiEnum; 
                                hf_register_info hf = {
&(oid_data->value_hfid), { 
-                                       oid_data->name,
+                                       g_strdup(oid_data->name),
                                        alnumerize(oid_data->name),
                                        typedata->ft_type,
                                        typedata->display,


-- 
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.