aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ascendtext.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-11-28 16:17:22 -0500
committerMichael Mann <mmann78@netscape.net>2015-11-30 01:39:56 +0000
commit338da1c0ea0b2f8595d3a7b6d6c9548f7da3e27b (patch)
treefccc1db51cdb8f3712d1e8f6333fc740188143fe /wiretap/ascendtext.c
parent22d9cea84163d79653d3bded0c35852fa5b5226e (diff)
Fix out-of-bounds read in ascend_seek.
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>
Diffstat (limited to 'wiretap/ascendtext.c')
-rw-r--r--wiretap/ascendtext.c1
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