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

2024-07-03 Thread Akhil Goyal
> 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

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

2024-07-01 Thread Andrew Boyer
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/ioni