Files
external_libcamera/src/cam
Laurent Pinchart 96a5c69970 cam: kms_sink: Make lifetime management of DRM request safer
The drmRequest is KMSSink::processRequest() is created as a naked
pointer, passed to the constructor of the KMSSink::Request object that
stores it in a std::unique_ptr<>, and used later in the function. The
current implementation is safe, but could be prone to both memory leaks
and use-after-free bugs if modified. Improve it by replacing the naked
pointer with a std::unique_ptr<>.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Eric Curtin <ecurtin@redhat.com>
Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2022-08-09 02:31:10 +03:00
..
2021-11-24 12:18:33 +00:00
2021-08-05 16:23:10 +03:00
2021-11-24 12:18:33 +00:00
2021-11-24 12:18:33 +00:00
2021-11-24 12:18:33 +00:00