ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 6020] Lua pinfo.cols.protocol not holding value in postdis

Date: Sun, 3 Jul 2011 14:28:56 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6020

--- Comment #3 from Tony Trinh <tony19@xxxxxxxxx> 2011-07-03 17:28:54 EDT ---
(In reply to comment #2)
Hmm. Just curious what your logic is. Wouldn't changing `if (tree)` to `if (1)`
ignore the fact that `tree` can be `null` (in which case a segfault would occur
before it ever reached Lua)?

I've only ever seen Lua dissectors be called with non-null trees (doesn't mean
that it can't happen...I can't tell from the source). Even if a null tree ever
percolated up, Lua would throw an exception when the postdissector tried to add
something to the tree (causing an expert-info tree item that indicated the
location of the Lua exception).

Something interesting is that the symptom also occurs in the trunk-1.4 source
(despite the original bug description).

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