pipeline: fix string copy into fixed size buffer
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Mon, 26 Oct 2020 19:59:16 +0000 (19:59 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 29 Oct 2020 16:32:49 +0000 (17:32 +0100)
commit0dde44843b684a5e4e5f7723739fda793bbf7541
tree256fc0319f617fad4a01350b0648800263b5a8f9
parenteb7fa475f7c568feb0ab1559232994504b73bb2c
pipeline: fix string copy into fixed size buffer

Fix potential buffer overflows by string copy into fixed size buffer.

Coverity issue: 362732, 362736, 362760, 362772, 362775, 362784
Coverity issue: 362800, 362803, 362806, 362811, 362814, 362816
Coverity issue: 362834, 362837, 362844, 362845, 362857, 362861
Coverity issue: 362868, 362890, 362893, 362904, 362905
Fixes: 56492fd536 ("pipeline: add new SWX pipeline type")
Fixes: 1e4c88caea ("pipeline: add SWX extern objects and funcs")
Fixes: e9d870dd93 ("pipeline: add SWX pipeline tables")
Fixes: a1711f948d ("pipeline: add SWX Rx and extract instructions")

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_pipeline/rte_swx_pipeline.c
lib/librte_pipeline/rte_swx_pipeline.h
lib/librte_pipeline/rte_swx_pipeline_spec.c