blob: ed670e465376aea5e5a2f914df34c9096ae62dc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
diff -ru dvbstream-20080302/dvbstream.c dvbstream/dvbstream.c
--- dvbstream-20080302/dvbstream.c 2007-09-14 23:02:39.000000000 +0200
+++ dvbstream/dvbstream.c 2008-03-24 19:28:16.000000000 +0100
@@ -817,6 +817,8 @@
return 0;
else if(af == 3)
l += buf[4] + 1;
+ if(l >= TS_SIZE - 4)
+ return 0;
if(pid == 0)
{
|