Wireshark-bugs: [Wireshark-bugs] [Bug 8026] New: Problems with lua wrapper
Date Prev · Date Next · Thread Prev · Thread Next
Date: Fri, 30 Nov 2012 10:10:58 +0000
Bug ID 8026
Summary Problems with lua wrapper
Classification Unclassified
Product Wireshark
Version unspecified
Hardware All
OS All
Status NEW
Severity Major
Priority Low
Component Wireshark
Assignee bugzilla-admin@wireshark.org
Reporter xpeh.owns@gmail.com

Created attachment 9599 [details]
Wrong order of values (2, 3, 1, 0xff, 0xf7)

Build Information:

--
1. Lua wrapper is too thin.

Wireshark silently crashed after passing nil instead of hash map. This happened
because of typo, in this case lua silently creates a new variable and inits it
with nil.

Crashing without error message is really bad because persons who only know lua
and who are not so familiar with C can do nothing with this error - neither
they can fix it nor they can report it. Script languages should throw an
exception instead.

2. Lua has no lists/arrays like C/python, it only has hash array. Other as for
lists, iteration order is random, so you should sort keys and iterate over them
(

See screenshot for bug example. Values are listed in order: 2, 3, 1, 0xff,
0xf7.


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