cancel
Showing results for 
Search instead for 
Did you mean: 

Buffer overun in stm320518_eval_cec.c

rfrank
Associate
Posted on May 15, 2015 at 18:28

I was running code through a static analysis tool and it found this problem in a number of places:

Array 'HDMI_CEC_DeviceMap[14]' accessed at index 19, which is out of bounds.

The problem seems to be that the the arrary is defined as HDMI_CEC_DeviceMap[14];

but the loop is using hex.

 case HDMI_CEC_OPCODE_ROUTING_CHANGE:

      for (i = 0;i < 0x14;i++)

FYI.
0 REPLIES 0