[EXTERNAL] [PATCH 1/2] crypto/ionic: fix buffer overrun when writing session

Akhil Goyal gakhil at marvell.com
Wed Jul 3 19:30:44 CEST 2024


> Coverity pointed out that, if the final segment of the session key being
> written is not a full segment, the loop could potentially read past the
> end of the source buffer. Use RTE_MIN() to make sure to only copy as much
> of the key as is left.
> 
> Coverity issue: 426432
> Fixes: 6bc7f2cf6687 ("crypto/ionic: support sessions")
> 
> Signed-off-by: Andrew Boyer <andrew.boyer at amd.com>
Series applied to dpdk-next-crypto
Thanks.


More information about the dev mailing list