table: fix out of bounds write
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Wed, 7 Apr 2021 10:59:53 +0000 (11:59 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 19 Apr 2021 17:49:09 +0000 (19:49 +0200)
commit97005a6665f64f920695b0a64cb35bf7cfbd4c3d
treebcad05b3f87beba0dfd90467066c9ac8f7f79d8e
parentae650ff9ba0cb90e68441538ded08b27bccb1113
table: fix out of bounds write

Fix out of bounds write. The allocated string size was incorrect.

Coverity issue: 369670
Fixes: 66440b7b22f2 ("table: add wildcard match table type")

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_table/rte_swx_table_wm.c