Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-bugs: [Wireshark-bugs] [Bug 4255] New: Upper case in Lua pref symbol causes Wireshark

Date: Fri, 20 Nov 2009 07:28:47 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4255

           Summary: Upper case in Lua pref symbol causes Wireshark to crash
           Product: Wireshark
           Version: 1.2.3
          Platform: Other
        OS/Version: Windows XP
            Status: NEW
          Severity: Minor
          Priority: Low
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: beth.tridium@xxxxxxxxx


Created an attachment (id=3983)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=3983)
Test case for Lua pref bug

Build Information:
Version 1.2.3 (SVN Rev 30730)

Copyright 1998-2009 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
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 with GTK+ 2.16.2, with GLib 2.20.3, with WinPcap (version unknown),
with libz 1.2.3, without POSIX capabilities, with libpcre 7.0, with SMI 0.4.8,
with c-ares 1.6.0, with Lua 5.1, with GnuTLS 2.8.1, with Gcrypt 1.4.4, with MIT
Kerberos, with GeoIP, with PortAudio V19-devel (built Oct 27 2009), with
AirPcap.

Running on Windows XP Service Pack 3, build 2600, with WinPcap version 4.1
beta5
(packet.dll version 4.1.0.1452), based on libpcap version 1.0.0, GnuTLS 2.8.1,
Gcrypt 1.4.4, without AirPcap.

Built using Microsoft Visual C++ 9.0 build 30729



--

When creating a preference in Lua, the internal name of the pref cannot contain
an upper case character.  

E.g. for protocol "test_proto",

  test_proto.prefs.Value = Pref.uint("Value", 42, "Arbitrary value")

causes Wireshark to crash on startup (with the always-helpful MSVC "Runtime
Error!" dialog) but

  test_proto.prefs.value = Pref.uint("Value", 42, "Arbitrary value")

works just fine.


It's a minor bug with an easy workaround (just don't use caps), BUT it's very
subtle, so if you get bitten by it you could spend quite a while tracking down
the problem.


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