Wireshark-bugs: [Wireshark-bugs] [Bug 3725] The GIOP dissector should use ep_ or se_ allocated m
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3725
--- Comment #3 from Chris Maynard <christopher.maynard@xxxxxxxxx> 2010-08-02 07:42:37 PDT ---
(In reply to comment #2)
> That in itself is not a problem. As long as there's a free for every
> allocation. Sometimes you can assure that easily, sometimes not. That's where
> ep_/se_ memory comes in.
What happens if memory is allocated then the packet is malformed before the
free occurs? Or what happens if memory is allocated, but the packet is
truncated due to the snaplen and dissection is aborted before the memory can be
freed?
I haven't looked at all the instances of g_malloc and g_new that grep found, so
maybe there really isn't a problem for all those other dissectors, even in the
case of malformed and/or truncated packets. But I suspect there are potential
dangers lurking. The results of grep also show a small trend of increasing use
of g_malloc, so new or modified dissectors that had previously not had a memory
allocation problem might now have one. You guys are the experts, not me, so I
don't want to definitively claim there are problems here, but I just thought
I'd mention it in case. Thanks.
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.