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:
parent
22d9cea841
commit
338da1c0ea
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue