aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/peektagged.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-01-24 10:28:56 -0800
committerGerald Combs <gerald@wireshark.org>2015-01-24 19:14:38 +0000
commitcf142c6b6771d7c83e736464850f4be9a843b020 (patch)
tree9dc2c4a2319da9b4373078a2f2baa1297a7c711a /wiretap/peektagged.c
parent7ed097c06abfb5534d65c19f2abe4f41cb059a0b (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 'wiretap/peektagged.c')
-rw-r--r--wiretap/peektagged.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/peektagged.c b/wiretap/peektagged.c
index 631170ed36..8d9806899e 100644
--- a/wiretap/peektagged.c
+++ b/wiretap/peektagged.c
@@ -311,7 +311,7 @@ wtap_open_return_val peektagged_open(wtap *wth, int *err, gchar **err_info)
{
peektagged_section_header_t ap_hdr;
int ret;
- guint32 fileVersion;
+ guint32 fileVersion = 0;
guint32 mediaType;
guint32 mediaSubType = 0;
int file_encap;