Wireshark-bugs: [Wireshark-bugs] [Bug 12404] New: WSLUA Adding a ProtoField that is part of a pr
Date: Wed, 04 May 2016 09:45:47 +0000
Bug ID 12404
Summary WSLUA Adding a ProtoField that is part of a protocol with four parameters raises an error
Product Wireshark
Version 2.0.3
Hardware x86-64
OS Windows 7
Status UNCONFIRMED
Severity Minor
Priority Low
Component Dissection engine (libwireshark)
Assignee bugzilla-admin@wireshark.org
Reporter konrads@smelkovs.com

Build Information:
Wireshark 2.0.3 (v2.0.3-0-geed34f0 from master-2.0)

Copyright 1998-2016 Gerald Combs <gerald@wireshark.org> and contributors.
License GPLv2+: GNU GPL version 2 or later
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled (64-bit) with Qt 5.3.2, with WinPcap (4_1_3), with libz 1.2.8, with
GLib 2.42.0, with SMI 0.4.8, with c-ares 1.9.1, with Lua 5.2, with GnuTLS
3.2.15, with Gcrypt 1.6.2, with MIT Kerberos, with GeoIP, with QtMultimedia,
with AirPcap.

Running on 64-bit Windows 7 Service Pack 1, build 7601, with locale C, with
WinPcap version 4.1.3 (packet.dll version 4.1.0.2980), based on libpcap version
1.0 branch 1_0_rel0b (20091008), with GnuTLS 3.2.15, with Gcrypt 1.6.2, without
AirPcap.
       Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz (with SSE4.2), with 7888MB of
physical memory.
Built using Microsoft Visual C++ 12.0 build 40629

--
If I add a ProtoField to a tree with four arguments that is part of a Proto
then, I get this error:

f.f_foo_msg = ProtoField.bytes("foo.bar","FOO message")
foo_wrapper =
subtree:add(f.f_foo_msg,buf(offset,msglen),buf(offset,msglen),"FOO message: "
.. payload_apdu .. "(" .. msglen .. ")")
Expert Info (Error/Undecoded): Lua Error: [string "redacted..."]:191: calling
'add' on bad self (string expected, got userdata)

If I change f.f_foo_msg to just f_foo_msg (not part of Proto.fields structure),
then it sort of works, but I get a '(null)' prefix in the Tree like so:
   (null) FOO message: bar-baz(1337)


You are receiving this mail because:
  • You are watching all bug changes.