Newly introduced findings

List of Findings

Error: CPPCHECK_WARNING (CWE-562): [#def1]
libXfont2-2.0.8/src/bitmap/bdfread.c:772: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  770|   	props[nextProp].value = (INT32) pState->resolution_x;
#  771|   	stringProps[nextProp] = FALSE;
#  772|-> 	pState->resolutionXProp = &props[nextProp];
#  773|   	nextProp++;
#  774|       }

Error: CPPCHECK_WARNING (CWE-562): [#def2]
libXfont2-2.0.8/src/bitmap/bdfread.c:779: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  777|   	props[nextProp].value = (INT32) pState->resolution_y;
#  778|   	stringProps[nextProp] = FALSE;
#  779|-> 	pState->resolutionYProp = &props[nextProp];
#  780|   	nextProp++;
#  781|       }

Error: COMPILER_WARNING: [#def3]
libXfont2-2.0.8/src/bitmap/bitscale.c: scope_hint: In function 'BitmapScaleBitmaps'
libXfont2-2.0.8/src/bitmap/bitscale.c:1514:54: warning[-Wformat=]: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'}
# 1514 |  fprintf(stderr, "Error: Couldn't allocate bitmaps (%d)\n", bytestoalloc);
#      |                                                     ~^      ~~~~~~~~~~~~
#      |                                                      |      |
#      |                                                      int    size_t {aka long unsigned int}
#      |                                                     %ld
# 1512|       bitmapFont->bitmaps = calloc(1, bytestoalloc);
# 1513|       if (!bitmapFont->bitmaps) {
# 1514|->  fprintf(stderr, "Error: Couldn't allocate bitmaps (%d)\n", bytestoalloc);
# 1515|   	goto bail;
# 1516|       }

Scan Properties

analyzer-version-clippy1.97.1
analyzer-version-cppcheck2.21.1
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.97.1
diffbase-analyzer-version-cppcheck2.21.1
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
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-201.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.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namelibXfont2-2.0.7-4.fc44
diffbase-store-results-to/tmp/tmpvoo5ju4o/libXfont2-2.0.7-4.fc44.tar.xz
diffbase-time-created2026-08-03 16:47:58
diffbase-time-finished2026-08-03 16:50:21
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpvoo5ju4o/libXfont2-2.0.7-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpvoo5ju4o/libXfont2-2.0.7-4.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-201.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namelibXfont2-2.0.8-3.fc45
store-results-to/tmp/tmpf94ka45i/libXfont2-2.0.8-3.fc45.tar.xz
time-created2026-08-03 16:50:43
time-finished2026-08-03 16:52:12
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpf94ka45i/libXfont2-2.0.8-3.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpf94ka45i/libXfont2-2.0.8-3.fc45.src.rpm'
tool-versioncsmock-3.8.7.20260803.142340.gb75b18e-1.el9