From 7abfa36686850a0d81ef1ef280a181d09e5e639c Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sat, 28 Nov 2015 16:17:22 -0500 Subject: 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 Reviewed-by: Peter Wu Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann (cherry picked from commit 338da1c0ea0b2f8595d3a7b6d6c9548f7da3e27b) Reviewed-on: https://code.wireshark.org/review/12296 --- wiretap/ascendtext.c | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1