Wireshark-bugs: [Wireshark-bugs] [Bug 5630] new_packet_list: LUA dissector - gibberish in "Info"
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5630
David Carne <davidcarne@xxxxxxxxx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |davidcarne@xxxxxxxxx
--- Comment #3 from David Carne <davidcarne@xxxxxxxxx> 2011-02-02 14:16:48 PST ---
I ran into this issue today as well - I suspect that this is due to the use of
col_set_str in wslua_pinfo.c:Columns__newindex
col_set_str simply stores the pointer passed to it, and luaL_checkstring
returns a temporary pointer. Changing col_set_str to col_add_str in
Columns_newindex seems to fix the issue, but I haven't tested it fully.
As a workaround - use pinfo.cols.src:set("THE STRING") rather than
pinfo.cols.src="THE STRING". This method of assignment uses col_add_str which
stores the string internally rather than by storing the pointer.
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.