Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
patch-2.8/src/inp.c:206:22: warning[-Wanalyzer-malloc-leak]: leak of 's'
patch-2.8/src/inp.c:172:6: branch_false: following 'false' branch...
patch-2.8/src/inp.c:201:21: branch_false: ...to here
patch-2.8/src/inp.c:204:33: branch_false: following 'false' branch (when 's' is NULL)...
patch-2.8/src/inp.c:206:22: branch_false: ...to here
patch-2.8/src/inp.c:206:22: throw: if 'xireallocarray' throws an exception...
patch-2.8/src/inp.c:206:22: danger: 's' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  204|     for (char const *s = buffer;  (s = memchr (s, '\n', lim - s));  s++)
#  205|       iline++;
#  206|->   char const **ptr = xireallocarray (nullptr, iline, sizeof *ptr);
#  207|     iline = 0;
#  208|     for (char const *s = buffer; ; s++)

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.92.0
diffbase-analyzer-version-cppcheck2.19.1
diffbase-analyzer-version-gcc16.0.0
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-96.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namepatch-2.8-2.fc43
diffbase-store-results-to/tmp/tmpfh1o94pw/patch-2.8-2.fc43.tar.xz
diffbase-time-created2026-01-08 20:03:28
diffbase-time-finished2026-01-08 20:05:52
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpfh1o94pw/patch-2.8-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpfh1o94pw/patch-2.8-2.fc43.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-96.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namepatch-2.8-3.fc44
store-results-to/tmp/tmpxjwgh6cu/patch-2.8-3.fc44.tar.xz
time-created2026-01-08 20:06:11
time-finished2026-01-08 20:08:09
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpxjwgh6cu/patch-2.8-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpxjwgh6cu/patch-2.8-3.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9