Task #131641 - added.err
back to task #131641download
Error: GCC_ANALYZER_WARNING (CWE-476):
libinput-1.31.3/test/test-plugins-lua.c:1251:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libinput-1.31.3/test/test-plugins-lua.c:1244:1: enter_function: entry to ‘lua_reject_precompiled_files’
libinput-1.31.3/test/test-plugins-lua.c:1246:37: call_function: calling ‘tmpdir_create’ from ‘lua_reject_precompiled_files’
libinput-1.31.3/test/test-plugins-lua.c:1246:37: return_function: returning to ‘lua_reject_precompiled_files’ from ‘tmpdir_create’
libinput-1.31.3/test/test-plugins-lua.c:1251:33: danger: dereference of NULL ‘tmpdir_create(0)’
# 1249| * Binary (pre-compiled) Lua files must be rejected by the
# 1250| * plugin loader for security reasons. */
# 1251|-> _autofree_ char *path = strdup_printf("%s/10-binary-plugin.lua", tmpdir->path);
# 1252| _autoclose_ int fd = open(path, O_WRONLY | O_CREAT, 0644);
# 1253| litest_assert_errno_success(fd);
Error: GCC_ANALYZER_WARNING (CWE-401):
libinput-1.31.3/tools/libinput-record.c:2495:25: warning[-Wanalyzer-malloc-leak]: leak of ‘zalloc(40)’
libinput-1.31.3/tools/libinput-record.c:2458:1: enter_function: entry to ‘init_hidraw’
libinput-1.31.3/tools/libinput-record.c:2462:9: branch_true: following ‘true’ branch...
libinput-1.31.3/tools/libinput-record.c:2470:40: branch_true: ...to here
libinput-1.31.3/tools/libinput-record.c:2475:24: branch_true: following ‘true’ branch...
libinput-1.31.3/tools/libinput-record.c:2480:44: branch_true: ...to here
libinput-1.31.3/tools/libinput-record.c:2480:30: call_function: calling ‘strstartswith’ from ‘init_hidraw’
libinput-1.31.3/tools/libinput-record.c:2480:30: return_function: returning to ‘init_hidraw’ from ‘strstartswith’
libinput-1.31.3/tools/libinput-record.c:2488:28: branch_false: following ‘false’ branch...
libinput-1.31.3/tools/libinput-record.c:2491:34: branch_false: ...to here
libinput-1.31.3/tools/libinput-record.c:2491:34: call_function: calling ‘zalloc’ from ‘init_hidraw’
libinput-1.31.3/tools/libinput-record.c:2491:34: return_function: returning to ‘init_hidraw’ from ‘zalloc’
libinput-1.31.3/tools/libinput-record.c:2493:40: call_function: calling ‘safe_strdup’ from ‘init_hidraw’
libinput-1.31.3/tools/libinput-record.c:2493:40: return_function: returning to ‘init_hidraw’ from ‘safe_strdup’
libinput-1.31.3/tools/libinput-record.c:2495:25: danger: ‘zalloc(40)’ leaks here; was allocated at [(24)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/23)
# 2493| hidraw->name = safe_strdup(entry->d_name);
# 2494| hidraw->device = dev;
# 2495|-> list_insert(&dev->hidraw_devices, &hidraw->link);
# 2496| }
# 2497| closedir(dir);