Task #137147 - added.err
back to task #137147download
Error: GCC_ANALYZER_WARNING (CWE-688):
conmon-2.2.1/src/conn_sock.c: scope_hint: In function ‘bind_unix_socket’
conmon-2.2.1/src/conn_sock.c:234:45: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/glib-2.0/glib/gstring.h:37: included_from: Included from here.
/usr/include/glib-2.0/glib/giochannel.h:36: included_from: Included from here.
/usr/include/glib-2.0/glib.h:56: included_from: Included from here.
conmon-2.2.1/src/conn_sock.h:4: included_from: Included from here.
conmon-2.2.1/src/conn_sock.c:3: included_from: Included from here.
conmon-2.2.1/src/conn_sock.c:277:24: note: in expansion of macro ‘g_strdup’
conmon-2.2.1/src/conn_sock.c:277:24: note: in expansion of macro ‘g_strdup’
conmon-2.2.1/src/conn_sock.c: scope_hint: In function ‘bind_unix_socket’
/usr/include/glib-2.0/glib-unix.h:34: included_from: Included from here.
conmon-2.2.1/src/utils.h:11: included_from: Included from here.
conmon-2.2.1/src/conn_sock.c:6: included_from: Included from here.
/usr/include/fcntl.h:209:12: note: argument 1 of ‘open’ must be non-null
# 232| * to actually refer to the file where the socket will be created below.
# 233| */
# 234|-> _cleanup_close_ int parent_dir_fd = open(parent_dir, O_PATH | O_CLOEXEC);
# 235| if (parent_dir_fd < 0)
# 236| pexitf("failed to open socket path parent dir %s", parent_dir);