aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite_io.py
diff options
context:
space:
mode:
authorMoshe Kaplan <me@moshekaplan.com>2020-03-15 13:54:48 -0400
committerPeter Wu <peter@lekensteyn.nl>2020-03-16 22:42:03 +0000
commit4a8da5fbde2b731aeba451735497b46361873282 (patch)
tree2fbf967bfbfb8915c7dc5f7b1160e859868757df /test/suite_io.py
parent2b50d124ec511268ff459335744761adeace018d (diff)
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>
Diffstat (limited to 'test/suite_io.py')
0 files changed, 0 insertions, 0 deletions