mpegtssection: Fix off-by-one in PMT parsing
authorSebastian Dröge <sebastian@centricular.com>
Mon, 28 Nov 2016 18:05:02 +0000 (20:05 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 28 Nov 2016 18:05:02 +0000 (20:05 +0200)
gst-libs/gst/mpegts/gstmpegtssection.c

index 02038a7..5222024 100644 (file)
@@ -716,7 +716,7 @@ _parse_pmt (GstMpegtsSection * section)
   }
 
   /* Section length was longer than the actual content of the PMT */
-  if (data <= end - 4)
+  if (data < end - 4)
     goto error;
 
   /* Ensure we did not read after the end of our array */