Skip to content

Fixes for issues highlighted by static analysis scan

Bruce Richardson dpdk-dev 1 version Applied

Status from this message: Applied

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5test: after NULL check, don't free the NULL pointerapp/test/test_kvargs.c+0 -30 replies
2/5test: check for mbuf alloc failureapp/test/test_table_acl.c+5 -00 replies
3/5examples: set correct limit for length of unix socket pathexamples/vm_power_manager/channel_manager.c examples/vm_power_manager/channel_manager.h+8 -20 replies
4/5examples: fix check for null before de-referenceexamples/vm_power_manager/channel_manager.c examples/vm_power_manager/vm_power_cli.c+3 -30 replies
5/5cfgfile: prevent error when reading an empty filelib/librte_cfgfile/rte_cfgfile.c+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Fixes for issues highlighted by static analysis scan

This patch set fixes 5 issues found during a static analysis scan of the latest DPDK code. These fixes are for possible NULL pointer references and array overflow/underflow.

Bruce Richardson (5):
test: after NULL check, don't free the NULL pointer
test: check for mbuf alloc failure
examples: set correct limit for length of unix socket path
examples: fix check for null before de-reference
cfgfile: prevent error when reading an empty file

 app/test/test_kvargs.c                      | 3 ---
 app/test/test_table_acl.c                   | 5 +++++
 examples/vm_power_manager/channel_manager.c | 4 ++--
 examples/vm_power_manager/channel_manager.h | 8 +++++++-
 examples/vm_power_manager/vm_power_cli.c    | 4 ++--
 lib/librte_cfgfile/rte_cfgfile.c            | 4 +++-
 6 files changed, 19 insertions(+), 9 deletions(-)
Signature · 1 line
1.9.3