[libcamera-devel] [PATCH v2 0/2] Check converter_ validity

Suhrid Subramaniam suhridsubramaniam at gmail.com
Mon Feb 27 23:49:08 CET 2023


These patches modify the simple pipeline handler and converter.cpp to ensure that
a segmentation fault doesn't occur while checking for the validity of the converter_ 
in situations where converter_ is a nullptr.
i.e. converter_->isValid() doesn't become nullptr->isValid() in simple.cpp.

Suhrid Subramaniam (2):
  libcamera: pipeline: simple: Check converter_
  libcamera: converter: return unique converter only if Valid

 src/libcamera/converter.cpp              | 7 ++++---
 src/libcamera/pipeline/simple/simple.cpp | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

-- 
2.39.0



More information about the libcamera-devel mailing list