Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
common/cnxk: fix possible out-of-bounds access
[ upstream commit 9a92937cf0c836b7f2b5e303523279ddf9473a35 ] The subtraction expression in mbox_memcpy() can wrap around causing an out-of-bounds access. Added a check on 'size' to fix this. Coverity issue: 384431, 384439 Fixes: 585bb3e ("common/cnxk: add VF support to base device class") Signed-off-by: Satheesh Paul <psatheesh@marvell.com> Reviewed-by: Harman Kalra <hkalra@marvell.com>
- Loading branch information