Wireshark-bugs: [Wireshark-bugs] [Bug 976] Buildbot crash output: fuzz-2006-06-26-2594.pcap

Date: Fri, 21 Jul 2006 01:36:27 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=976





------- Comment #3 from guy@xxxxxxxxxxxx  2006-07-21 01:36 GMT -------
tvb_get_ephemeral_string() (not _text) just uses memcpy() to copy the string,
so it shouldn't be affected by a null character.  It can only return null if
ep_alloc() returns null - and if null pointers cause a problem, you'll crash in

        strbuf[length] = '\0';

before tvb_get_ephemeral_string() returns.

proto_tree_add_text() can't check for a null string in this case; you pass it a
format string followed by a set of arguments and, unless it were to go through
the format string itself and check the arguments, it has no way of knowing what
the arguments are or whether they should be null.


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