vppinfra: elog: fix read overflow in string lookup 94/20694/2
authorBenoît Ganne <bganne@cisco.com>
Wed, 17 Jul 2019 09:45:20 +0000 (11:45 +0200)
committerDave Barach <openvpp@barachs.net>
Wed, 17 Jul 2019 12:17:43 +0000 (12:17 +0000)
commitb11e4aefbee765c0c09bbe1386ec78920f9162fd
tree86a31ca2af5bc75800c297d08bbf4838c78c788f
parenta2e4451db8bab5467f8cf490bdb9a020af10ef8c
vppinfra: elog: fix read overflow in string lookup

elog string hashtable use strlen() to determine string length for
hashing, strings must be NULL-terminated for both inserts and lookups.

Type: fix
Fixes: 9c8ca8dd3197e40dfcb8bcecd95c10eeb56239ed

Change-Id: I0680d39a9b89411055fd6adc89c9f253adfae32c
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vppinfra/elog.c