diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-06-29 16:11:25 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-08-05 08:53:59 +0100 |
commit | 68a0be3ce975ab85af0d64fc1669ef0fdb552fb5 (patch) | |
tree | bef476eaeb4493530ef786d55001d4b5fad4098c /test/event.cpp | |
parent | 0e3e08ec9dcfbf33189889b0312085863cf99a4f (diff) |
libcamera: v4l2_videodevice: Handle unexpected buffers
A kernel bug can lead to unexpected buffers being dequeued where we
haven't entered the buffer in our queuedBuffers_ list.
This causes invalid accesses if not handled correctly within libcamera,
and while it is a kernel issue, we must protect against unpatched
kernels.
Handle unexpected buffers by returning a nullptr, and move cache
management after the validation of the buffer.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Change-Id: I8c8e0b72a2e529589a1e68b4bcd25bb11c261879
Diffstat (limited to 'test/event.cpp')
0 files changed, 0 insertions, 0 deletions