summaryrefslogtreecommitdiff
path: root/pat.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-08-06 12:29:38 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-08-06 12:29:38 +0200
commit16c3b8f0e7f3bd4ba5148e188806eae7ddcfaf08 (patch)
tree3dd6536b8fab9f8cdc826ab56a836731c3684108 /pat.c
parentff5df8f29852a1c968a2797e13e494ae882bed26 (diff)
downloadvdr-16c3b8f0e7f3bd4ba5148e188806eae7ddcfaf08.tar.gz
vdr-16c3b8f0e7f3bd4ba5148e188806eae7ddcfaf08.tar.bz2
Fixed an out-of-bounds memory access with audio language ids
Diffstat (limited to 'pat.c')
-rw-r--r--pat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pat.c b/pat.c
index 356e28ef..e6b48cc1 100644
--- a/pat.c
+++ b/pat.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: pat.c 1.12 2005/01/25 21:02:11 kls Exp $
+ * $Id: pat.c 1.13 2005/08/06 12:23:51 kls Exp $
*/
#include "pat.h"
@@ -324,10 +324,10 @@ void cPatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
SI::PMT::Stream stream;
int Vpid = 0;
int Ppid = pmt.getPCRPid();
- int Apids[MAXAPIDS + 1] = { 0 };
+ int Apids[MAXAPIDS + 1] = { 0 }; // these lists are zero-terminated
int Dpids[MAXDPIDS + 1] = { 0 };
- char ALangs[MAXAPIDS + 1][4] = { "" };
- char DLangs[MAXDPIDS + 1][4] = { "" };
+ char ALangs[MAXAPIDS][4] = { "" };
+ char DLangs[MAXDPIDS][4] = { "" };
int Tpid = 0;
int NumApids = 0;
int NumDpids = 0;