AnsweredAssumed Answered

Buffer overun in stm320518_eval_cec.c

Question asked by frank.richard.001 on May 15, 2015
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.

Outcomes