media: amphion: fix two out-of-bounds copies
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | media: amphion: store only whole messages in the instance fifodrivers/ | +3 | 1 reply | |
| 2/2 | media: amphion: reject encoded frames larger than the stream bufferdrivers/ | +2 | 2 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Ming Qian |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] media: amphion: fix two out-of-bounds copies
Two fixes for the amphion VPU driver. The patches are independent.
Found with a CodeQL-based static analysis tool that we are developing. Each case was reproduced in a userspace harness under AddressSanitizer. Not tested on hardware. Compile-tested with W=1 on next-20261116.
I used an LLM to help write the harnesses and these patches.
Maoyi Xie (2):
media: amphion: store only whole messages in the instance fifo
media: amphion: reject encoded frames larger than the stream buffer
drivers/media/platform/amphion/venc.c | 3 ++- drivers/media/platform/amphion/vpu_msgs.c | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-)
Signature · 1 line
2.34.1