diff options
author | Michael Mann <mmann78@netscape.net> | 2015-11-28 16:17:22 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-11-30 01:40:19 +0000 |
commit | 7abfa36686850a0d81ef1ef280a181d09e5e639c (patch) | |
tree | e72a877d08f0e424f22e4fbf0fe897b05b1a17af | |
parent | e4267dd4d03b81c74cd6bc9f574f3f10936ee354 (diff) | |
download | wireshark-master-2.0.tar.gz |
Fix out-of-bounds read in ascend_seek.master-2.0
Bug: 11794
Change-Id: I74517806b119729ae6d9780bbd4bb094701ff05e
Reviewed-on: https://code.wireshark.org/review/12266
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
(cherry picked from commit 338da1c0ea0b2f8595d3a7b6d6c9548f7da3e27b)
Reviewed-on: https://code.wireshark.org/review/12296
-rw-r--r-- | wiretap/ascendtext.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wiretap/ascendtext.c b/wiretap/ascendtext.c index e793cb8b2b..09401c5249 100644 --- a/wiretap/ascendtext.c +++ b/wiretap/ascendtext.c @@ -116,6 +116,7 @@ static gint64 ascend_seek(wtap *wth, int *err, gchar **err_info) but keep looking for other headers. */ if (strcmp(strptr, ASCEND_DATE) == 0) { date_off = cur_off - len; + string_level[string_i] = 0; } else { if (date_off == -1) { /* Back up over the header we just read; that's where a read |