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
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
luatest.lua
nstime.lua
pat2pcre.lua
pcap_file.lua
pcre_sets.lua
pcre_sets2.lua
pinfo.lua wslua: pinfo: make p2p_dir accessible to lua dissectors 2019-07-22 15:45:27 +00:00
proto.lua
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
unicode.lua
verify_dissector.lua
verify_globals.lua