[libcamera-devel,0/2] IPC: Avoid memcpy() call with nullptr
mbox series

Message ID 20210818083842.31778-1-umang.jain@ideasonboard.com
Headers show
Series
  • IPC: Avoid memcpy() call with nullptr
Related show

Message

Umang Jain Aug. 18, 2021, 8:38 a.m. UTC
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(-)