wireshark/test/lua
Moshe Kaplan 4a8da5fbde wslua: Fix crash on TvbRange:__tostring for a zero-length TVB
Fields such as 'frame.time_delta' have no byte selection, they are added
with offset 0 and length 0, and evidently 'ws_tvb' is NULL. As
tvb_bytes_to_str expects a non-NULL tvb, explicitly check for this and
add a dummy placeholder. This is intended to be a human-readable string,
so prefer `<EMPTY>` over an empty string.

Change-Id: I32efe4cbefc6bcf0fa9fb94fcf25d7bf1628f3a7
Reviewed-on: https://code.wireshark.org/review/36440
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2020-03-16 22:42:03 +00:00
..
acme_file.lua
common_sets.lua Remove executable file permission from lua test files 2018-07-23 09:31:48 +00:00
dir.lua
dissectFPM.lua
dissector.lua HTTPS (almost) everywhere. 2019-07-26 18:44:40 +00:00
field.lua wslua: Fix crash on TvbRange:__tostring for a zero-length TVB 2020-03-16 22:42:03 +00:00
glib_sets.lua
globals_2.2.txt Clean up IPMB/I2C link-layer header types. 2019-03-23 20:30:00 +00:00
gregex.lua
inspect.lua
int64.lua
listener.lua Add support for protocol aliases. Switch BOOTP to DHCP. 2018-08-31 05:25:17 +00:00
luatest.lua Remove executable file permission from lua test files 2018-07-23 09:31:48 +00:00
nstime.lua Add support for protocol aliases. Switch BOOTP to DHCP. 2018-08-31 05:25:17 +00:00
pat2pcre.lua Remove executable file permission from lua test files 2018-07-23 09:31:48 +00:00
pcap_file.lua
pcre_sets.lua Remove executable file permission from lua test files 2018-07-23 09:31:48 +00:00
pcre_sets2.lua Remove executable file permission from lua test files 2018-07-23 09:31:48 +00:00
pinfo.lua wslua: pinfo: make p2p_dir accessible to lua dissectors 2019-07-22 15:45:27 +00:00
proto.lua Add support for protocol aliases. Switch BOOTP to DHCP. 2018-08-31 05:25:17 +00:00
protofield.lua wslua: Fix memleak of unregistered ProtoField strings 2019-10-28 15:05:54 +00:00
script_args.lua
struct.lua HTTPS In More Places, update some URLs. 2019-07-27 07:55:36 +00:00
tvb.lua test: lua: add a test for invalid ethernet address 2018-11-27 04:35:19 +00:00
unicode.lua test: add tests for Unicode paths in Lua and tshark -G folders 2018-12-29 08:27:58 +00:00
verify_dissector.lua
verify_globals.lua