[libcamera-devel] [PATCH 0/2] IPC: Avoid memcpy() call with nullptr
Umang Jain
umang.jain at ideasonboard.com
Wed Aug 18 10:38:40 CEST 2021
During the fd-leak test, compiled with -Db_sanitize=address,undefined
I noticed that few runtime errors were logged. The error were non-fatal
but were highlighting a underlying problem where memcpy() could been
called with nullptr.
The commit messages are a brain dump of my understand but probably
would have some scope of improvements.
Umang Jain (2):
libcamera: ipc_unixsocket: Do not run memcpy with null arguments
libcamera: ipc_pipe: Do not run memcpy with null arguments
src/libcamera/ipc_pipe.cpp | 7 +++++--
src/libcamera/ipc_unixsocket.cpp | 6 ++++--
2 files changed, 9 insertions(+), 4 deletions(-)
--
2.31.0
More information about the libcamera-devel
mailing list