From baa3eab78b422616a92ee38551c1b1510dca4ccb Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Wed, 2 Dec 2015 21:08:09 -0500 Subject: [MP2T] Reading buffer should have MP2T_SIZE+TRAILER_LEN_MAX space to give room for non-zero trailer. Bug: 11820 Change-Id: I7e0a603c20ca0c524399beb3d89e14c45dc3a06e Reviewed-on: https://code.wireshark.org/review/12393 Reviewed-by: Michael Mann Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- wiretap/mp2t.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wiretap/mp2t.c') diff --git a/wiretap/mp2t.c b/wiretap/mp2t.c index a569c99c05..f2181aa0b4 100644 --- a/wiretap/mp2t.c +++ b/wiretap/mp2t.c @@ -168,7 +168,7 @@ static gboolean mp2t_find_next_pcr(wtap *wth, guint8 trailer_len, int *err, gchar **err_info, guint32 *idx, guint64 *pcr, guint16 *pid) { - guint8 buffer[MP2T_SIZE]; + guint8 buffer[MP2T_SIZE+TRAILER_LEN_MAX]; gboolean found; guint8 afc; -- cgit v1.2.1