Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
libdrm-2.4.125/tests/util/pattern.c:877:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fsd’
libdrm-2.4.125/tests/util/pattern.c:1864:6: enter_function: entry to ‘util_fill_pattern’
libdrm-2.4.125/tests/util/pattern.c:1871:12: branch_false: following ‘false’ branch...
libdrm-2.4.125/tests/util/pattern.c:1874:9: branch_false: ...to here
libdrm-2.4.125/tests/util/pattern.c:1879:24: call_function: calling ‘fill_smpte’ from ‘util_fill_pattern’
#  875|   	struct fsd *fsd = malloc(sizeof(*fsd) + n * sizeof(fsd->error[0]));
#  876|   
#  877|-> 	fsd->width = width;
#  878|   	fsd->x = 0;
#  879|   	fsd->i = 0;

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-147.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-namelibdrm-2.4.128-3.fc44
diffbase-store-results-to/tmp/tmpuu2gqz0y/libdrm-2.4.128-3.fc44.tar.xz
diffbase-time-created2026-01-08 18:41:06
diffbase-time-finished2026-01-08 18:42:55
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpuu2gqz0y/libdrm-2.4.128-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpuu2gqz0y/libdrm-2.4.128-3.fc44.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-147.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-namelibdrm-2.4.125-2.fc43
store-results-to/tmp/tmpdzukfe74/libdrm-2.4.125-2.fc43.tar.xz
time-created2026-01-08 18:38:22
time-finished2026-01-08 18:40:41
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpdzukfe74/libdrm-2.4.125-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpdzukfe74/libdrm-2.4.125-2.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9