lkml.org 
[lkml]   [2012]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subject[media] dvb: Buffer Overfolow in cx24110_set_fec
From
Hi,

I am getting following error:

"drivers/media/dvb/frontends/cx24110.c:210 cx24110_set_fec() error:
buffer overflow 'rate' 7 <= 8"

In cx24110_set_fec, arrays " rate[] , g1[], g2[]" have only 7 values.


typedef enum fe_code_rate {
........
FEC_6_7, // index 7
FEC_7_8, // index 8
FEC_8_9,
FEC_AUTO,
.....
....
} fe_code_rate_t;


For "FEC_6_7 < fec < FEC_AUTO" , rate[fec]. g1[fec], g2[fec]
values are not defined initially.
Is it expected or bug ?


regards
Santosh


\
 
 \ /
  Last update: 2012-03-04 14:43    [W:0.055 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site