[libcamera-devel,v2,0/2] Check converter_ validity
mbox series

Message ID 20230227224910.151337-1-suhrid.subramaniam@mediatek.com
Headers show
Series
  • Check converter_ validity
Related show

Message

Suhrid Subramaniam Feb. 27, 2023, 10:49 p.m. UTC
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(-)