Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] libXcursor-1.2.3/src/cursor.c:34:23: warning[-Wanalyzer-malloc-leak]: leak of 'XcursorCursorsCreate(dpy, *images.nimage)' libXcursor-1.2.3/src/cursor.c:759:1: enter_function: entry to 'XcursorFilenameLoadCursors' libXcursor-1.2.3/src/cursor.c:767:8: branch_false: following 'false' branch... libXcursor-1.2.3/src/cursor.c:769:15: branch_false: ...to here libXcursor-1.2.3/src/cursor.c:769:15: call_function: calling 'XcursorImagesLoadCursors' from 'XcursorFilenameLoadCursors' # 32| # 33| cursors = malloc (sizeof (XcursorCursors) + # 34|-> (size_t) size * sizeof (Cursor)); # 35| if (!cursors) # 36| return NULL; Error: COMPILER_WARNING (CWE-704): [#def2] libXcursor-1.2.3/src/library.c: scope_hint: In function '_XcursorNextPath' libXcursor-1.2.3/src/library.c:157:22: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type # 157 | char *colon = strchr (path, ':'); # | ^~~~~~ # 155| _XcursorNextPath (const char *path) # 156| { # 157|-> char *colon = strchr (path, ':'); # 158| # 159| if (!colon) Error: COMPILER_WARNING (CWE-704): [#def3] libXcursor-1.2.3/src/library.c:157:22: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type # 155| _XcursorNextPath (const char *path) # 156| { # 157|-> char *colon = strchr (path, ':'); # 158| # 159| if (!colon)
| 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 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-248.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 | libXcursor-1.2.3-4.fc44 |
| store-results-to | /tmp/tmp86bw5bue/libXcursor-1.2.3-4.fc44.tar.xz |
| time-created | 2026-08-03 16:46:57 |
| time-finished | 2026-08-03 16:49:05 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmp86bw5bue/libXcursor-1.2.3-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp86bw5bue/libXcursor-1.2.3-4.fc44.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |