Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
event/octeontx: fix possible integer overflow
The last argument passed to ssovf_parsekv() is an unsigned char*, but it is accessed as an integer. This can lead to an integer overflow. Hence, make ensure the argument is accessed as a char and for better error handling use strtol instead of atoi. Bugzilla ID: 1512 Fixes: 3516327 ("event/octeontx: add selftest to device arguments") Cc: stable@dpdk.org Signed-off-by: Hanumanth Pothula <hpothula@marvell.com> Tested-by: Ali Alnubani <alialnu@nvidia.com>
- Loading branch information