URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=dfc979c4c54d8fd31692d79038d9b4171f7d7c58
Submitter: "Peter Wu <peter@xxxxxxxxxxxxx>"
Changed: branch: master-3.2
Repository: wireshark
Commits:
dfc979c by Moshe Kaplan (me@xxxxxxxxxxxxxxx):
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@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@xxxxxxxxxxxxx>
(cherry picked from commit d39594e4c0be0a9b0cb4000f60fda64371ed44ef)
Reviewed-on: https://code.wireshark.org/review/36476
Actions performed:
from c1768d5 tools: do not install doxygen
add dfc979c wslua: Fix crash on TvbRange:__tostring for a zero-length TVB
Summary of changes:
epan/wslua/wslua_tvb.c | 11 +++++++----
test/lua/field.lua | 2 ++
2 files changed, 9 insertions(+), 4 deletions(-)