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>
This commit is contained in:
Michael Mann 2015-11-28 16:17:22 -05:00
parent 22d9cea841
commit 338da1c0ea
1 changed files with 1 additions and 0 deletions

View File

@ -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