diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2020-05-20 17:04:59 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2020-05-21 13:35:29 +0200 |
commit | e8cc0a26583ce6fa3d25fd10173a037f2c5e57c8 (patch) | |
tree | 320b3dbe70a6e79b4c630cdad3b0ab9036e4754d /test/file.cpp | |
parent | c31785156bf9d6cbb5e4c41bf3f7344914bbb411 (diff) |
libcamera: raspberry: Fix segfault in ~RPiCameraData()
The RPiCameraData class destructor tries to stop its ipa_ instance
without making sure it has been initialized.
If the RPiCameraData gets destroyed before its ipa_ member is
initialized, for example if the sensor initialization fails during the
match() function, a nullptr dereference segfault is triggered preventing
a graceful library teardown.
Fix this by checking for ipa_ to be initialized before stopping it.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'test/file.cpp')
0 files changed, 0 insertions, 0 deletions