vppinfra: fix format_c_identifier vector overflow 43/27943/2
authorBenoît Ganne <bganne@cisco.com>
Thu, 16 Jul 2020 10:03:35 +0000 (12:03 +0200)
committerDamjan Marion <dmarion@me.com>
Thu, 16 Jul 2020 21:41:12 +0000 (21:41 +0000)
commit1bd6f61820c6c15534ebb04a4b070ba84bf08a9d
tree5cc63818ce49ae6cd0b886f20f0edebdf56a2eb6
parent65b65a4692c84462ecf500806795ea0350073e18
vppinfra: fix format_c_identifier vector overflow

In case of vector, we must check length before trying to access element.
Also fix wrong DPDK plugin workaround.

Type: fix

Change-Id: I2ecef1c88ebef2362f48cab0d462699aa43cd4b9
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/plugins/dpdk/device/format.c
src/vppinfra/std-formats.c