summaryrefslogtreecommitdiff
path: root/wiretap/mp2t.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-04-30 16:11:08 -0700
committerGuy Harris <guy@alum.mit.edu>2016-04-30 23:11:43 +0000
commitb39f0f32f9868b86f4c790d69f3267061b314fa8 (patch)
tree54ab4d6ea731047a6769d8be83869a81db480a42 /wiretap/mp2t.c
parent0bffb1663ecb4229699ba7263f4ed7f9824c5fc0 (diff)
downloadwireshark-b39f0f32f9868b86f4c790d69f3267061b314fa8.tar.gz
Note that we don't have to worry about too-large packets.
Change-Id: If72fb1ed64686348fa24b441cba8534fadc0e707 Reviewed-on: https://code.wireshark.org/review/15203 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/mp2t.c')
-rw-r--r--wiretap/mp2t.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wiretap/mp2t.c b/wiretap/mp2t.c
index aa24549f39..79d38e1dbd 100644
--- a/wiretap/mp2t.c
+++ b/wiretap/mp2t.c
@@ -67,6 +67,10 @@ mp2t_read_packet(mp2t_filetype_t *mp2t, FILE_T fh, gint64 offset,
{
guint64 tmp;
+ /*
+ * MP2T_SIZE will always be less than WTAP_MAX_PACKET_SIZE, so
+ * we don't have to worry about the packet being too big.
+ */
ws_buffer_assure_space(buf, MP2T_SIZE);
if (!wtap_read_bytes_or_eof(fh, ws_buffer_start_ptr(buf), MP2T_SIZE, err, err_info))
return FALSE;