diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-01-30 12:11:56 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-01-30 12:11:56 +0100 |
commit | 250e79afbea1e952c9c8faa4c4c52aab60a7f7ef (patch) | |
tree | 187bb3ae4dfc8454eef46733d6acc926f8c74826 /pat.c | |
parent | ac60bd7141b141ca1b4ee11b2471ccb24688a068 (diff) | |
download | vdr-250e79afbea1e952c9c8faa4c4c52aab60a7f7ef.tar.gz vdr-250e79afbea1e952c9c8faa4c4c52aab60a7f7ef.tar.bz2 |
Fixed a buffer overflow in case a station defines all 32 audio PIDs
Diffstat (limited to 'pat.c')
-rw-r--r-- | pat.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: pat.c 1.11 2005/01/16 13:54:34 kls Exp $ + * $Id: pat.c 1.12 2005/01/25 21:02:11 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] = { 0 }; - int Dpids[MAXDPIDS] = { 0 }; - char ALangs[MAXAPIDS][4] = { "" }; - char DLangs[MAXDPIDS][4] = { "" }; + int Apids[MAXAPIDS + 1] = { 0 }; + int Dpids[MAXDPIDS + 1] = { 0 }; + char ALangs[MAXAPIDS + 1][4] = { "" }; + char DLangs[MAXDPIDS + 1][4] = { "" }; int Tpid = 0; int NumApids = 0; int NumDpids = 0; |