Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] 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): [#def2] 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);
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| diffbase-analyzer-version-gcc | 16.1.1 |
| diffbase-analyzer-version-gcc-analyzer | 16.1.1 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-169.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | libinput-1.31.0-1.fc44 |
| diffbase-store-results-to | /tmp/tmpc6wirrp6/libinput-1.31.0-1.fc44.tar.xz |
| diffbase-time-created | 2026-08-03 17:25:51 |
| diffbase-time-finished | 2026-08-03 17:28:36 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpc6wirrp6/libinput-1.31.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpc6wirrp6/libinput-1.31.0-1.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-169.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libinput-1.31.3-2.fc45 |
| store-results-to | /tmp/tmpcdztkk7n/libinput-1.31.3-2.fc45.tar.xz |
| time-created | 2026-08-03 17:28:55 |
| time-finished | 2026-08-03 17:30:50 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpcdztkk7n/libinput-1.31.3-2.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpcdztkk7n/libinput-1.31.3-2.fc45.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |