Fix erroneous loop condition check in LCN parser.

This commit is contained in:
Dave Chapman 2012-08-06 22:29:16 +01:00 committed by Adam Sutton
parent d10808f7f9
commit 3157a5ca1f

View file

@ -764,7 +764,7 @@ dvb_table_local_channel(th_dvb_mux_instance_t *tdmi, uint8_t *ptr, int len,
if(tdmi == NULL)
return;
while(len > 4) {
while(len >= 4) {
sid = (ptr[0] << 8) | ptr[1];
chan = ((ptr[2] & 3) << 8) | ptr[3];