diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-01-24 10:28:56 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-01-24 19:14:38 +0000 |
commit | cf142c6b6771d7c83e736464850f4be9a843b020 (patch) | |
tree | 9dc2c4a2319da9b4373078a2f2baa1297a7c711a /epan/wslua/wslua_proto.c | |
parent | 7ed097c06abfb5534d65c19f2abe4f41cb059a0b (diff) |
Get Wireshark to compile with afl-gcc.
Fix errors found by American Fuzzy Lop's afl-gcc
(http://lcamtuf.coredump.cx/afl/):
peektagged.c:
error: 'fileVersion' may be used uninitialized in this function
packet-h223.c:
error: variable 'circuit_id' might be clobbered by 'longjmp' or 'vfork'
wslua_proto.c:
error: variable 'd' might be clobbered by 'longjmp' or 'vfork'
wslua_proto.c:
error: variable 'dt' might be clobbered by 'longjmp' or 'vfork'
Change-Id: Idd74a3ad7b236d3a8756c1e7e917b1c74143f381
Reviewed-on: https://code.wireshark.org/review/6767
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'epan/wslua/wslua_proto.c')
-rw-r--r-- | epan/wslua/wslua_proto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/wslua/wslua_proto.c b/epan/wslua/wslua_proto.c index ef71da77a3..309c6d7ce7 100644 --- a/epan/wslua/wslua_proto.c +++ b/epan/wslua/wslua_proto.c @@ -2128,7 +2128,7 @@ WSLUA_METHOD Dissector_call(lua_State* L) { #define WSLUA_ARG_Dissector_call_PINFO 3 /* The packet info. */ #define WSLUA_ARG_Dissector_call_TREE 4 /* The tree on which to add the protocol items. */ - Dissector d = checkDissector(L,1); + Dissector volatile d = checkDissector(L,1); Tvb tvb = checkTvb(L,WSLUA_ARG_Dissector_call_TVB); Pinfo pinfo = checkPinfo(L,WSLUA_ARG_Dissector_call_PINFO); TreeItem ti = checkTreeItem(L,WSLUA_ARG_Dissector_call_TREE); @@ -2539,7 +2539,7 @@ WSLUA_METHOD DissectorTable_try (lua_State *L) { #define WSLUA_ARG_DissectorTable_try_TVB 3 /* The buffer to dissect. */ #define WSLUA_ARG_DissectorTable_try_PINFO 4 /* The packet info. */ #define WSLUA_ARG_DissectorTable_try_TREE 5 /* The tree on which to add the protocol items. */ - DissectorTable dt = checkDissectorTable(L,1); + DissectorTable volatile dt = checkDissectorTable(L,1); Tvb tvb = checkTvb(L,WSLUA_ARG_DissectorTable_try_TVB); Pinfo pinfo = checkPinfo(L,WSLUA_ARG_DissectorTable_try_PINFO); TreeItem ti = checkTreeItem(L,WSLUA_ARG_DissectorTable_try_TREE); |