Error: GCC_ANALYZER_WARNING (CWE-401): [#def1] cups-2.4.19/cups/ppd.c:368:31: warning[-Wanalyzer-malloc-leak]: leak of ‘_ppdGlobals()’ cups-2.4.19/cups/ppd.c:2330:1: enter_function: entry to ‘ppdSetConformance’ cups-2.4.19/cups/ppd.c:2332:31: call_function: calling ‘_ppdGlobals’ from ‘ppdSetConformance’ cups-2.4.19/cups/ppd.c:2332:31: return_function: returning to ‘ppdSetConformance’ from ‘_ppdGlobals’ cups-2.4.19/cups/ppd.c:368:31: danger: ‘_ppdGlobals()’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8) # 366| */ # 367| # 368|-> if ((pg = (_ppd_globals_t *)_cupsThreadGetData(ppd_globals_key)) == NULL) # 369| { # 370| /* Error: GCC_ANALYZER_WARNING (CWE-476): [#def2] cups-2.4.19/cups/ppd.c:528:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ cups-2.4.19/cups/ppd.c:2266:1: enter_function: entry to ‘_ppdOpenFile’ cups-2.4.19/cups/ppd.c:2285:6: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)... cups-2.4.19/cups/ppd.c:2296:13: branch_false: ...to here cups-2.4.19/cups/ppd.c:2296:6: branch_true: following ‘true’ branch... cups-2.4.19/cups/ppd.c:2298:11: branch_true: ...to here cups-2.4.19/cups/ppd.c:2298:11: call_function: calling ‘_ppdOpen’ from ‘_ppdOpenFile’ # 526| */ # 527| # 528|-> pg->ppd_status = PPD_OK; # 529| pg->ppd_line = 0; # 530| Error: GCC_ANALYZER_WARNING (CWE-476): [#def3] cups-2.4.19/cups/ppd.c:2279:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ cups-2.4.19/cups/ppd.c:2266:1: enter_function: entry to ‘_ppdOpenFile’ cups-2.4.19/cups/ppd.c:2271:31: call_function: calling ‘_ppdGlobals’ from ‘_ppdOpenFile’ cups-2.4.19/cups/ppd.c:2271:31: return_function: returning to ‘_ppdOpenFile’ from ‘_ppdGlobals’ cups-2.4.19/cups/ppd.c:2279:3: danger: dereference of NULL ‘_ppdGlobals()’ # 2277| */ # 2278| # 2279|-> pg->ppd_line = 0; # 2280| # 2281| /* Error: GCC_ANALYZER_WARNING (CWE-476): [#def4] cups-2.4.19/cups/ppd.c:2336:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ cups-2.4.19/cups/ppd.c:2330:1: enter_function: entry to ‘ppdSetConformance’ cups-2.4.19/cups/ppd.c:2332:31: call_function: calling ‘_ppdGlobals’ from ‘ppdSetConformance’ cups-2.4.19/cups/ppd.c:2332:31: return_function: returning to ‘ppdSetConformance’ from ‘_ppdGlobals’ cups-2.4.19/cups/ppd.c:2336:3: danger: dereference of NULL ‘_ppdGlobals()’ # 2334| # 2335| # 2336|-> pg->ppd_conform = c; # 2337| } # 2338| Error: GCC_ANALYZER_WARNING (CWE-674): [#def5] cups-2.4.19/cups/ppd.c:2639:7: warning[-Wanalyzer-infinite-recursion]: infinite recursion cups-2.4.19/cups/ppd.c:2617:1: enter_function: entry to ‘ppd_free_group’ cups-2.4.19/cups/ppd.c:2624:6: branch_false: following ‘false’ branch... cups-2.4.19/cups/ppd.c:2634:7: branch_false: ...to here cups-2.4.19/cups/ppd.c:2634:6: branch_true: following ‘true’ branch... cups-2.4.19/cups/ppd.c:2636:36: branch_true: ...to here cups-2.4.19/cups/ppd.c:2637:10: branch_true: following ‘true’ branch (when ‘i != 0’)... cups-2.4.19/cups/ppd.c:2639:7: branch_true: ...to here cups-2.4.19/cups/ppd.c:2639:7: call_function: calling ‘ppd_free_group’ from ‘ppd_free_group’ # 2637| i > 0; # 2638| i --, subgroup ++) # 2639|-> ppd_free_group(subgroup); # 2640| # 2641| free(group->subgroups); Error: GCC_ANALYZER_WARNING (CWE-127): [#def6] cups-2.4.19/cups/ppd.c:3196:35: warning[-Wanalyzer-out-of-bounds]: heap-based buffer under-read cups-2.4.19/cups/ppd.c:2266:1: enter_function: entry to ‘_ppdOpenFile’ cups-2.4.19/cups/ppd.c:2285:6: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)... cups-2.4.19/cups/ppd.c:2296:13: branch_false: ...to here cups-2.4.19/cups/ppd.c:2296:6: branch_true: following ‘true’ branch... cups-2.4.19/cups/ppd.c:2298:11: branch_true: ...to here cups-2.4.19/cups/ppd.c:2298:11: call_function: calling ‘_ppdOpen’ from ‘_ppdOpenFile’ # 3194| } # 3195| # 3196|-> if (lineptr > line->buffer && lineptr[-1] == '\n') # 3197| lineptr --; # 3198| Error: GCC_ANALYZER_WARNING (CWE-124): [#def7] cups-2.4.19/cups/ppd.c:3199:5: warning[-Wanalyzer-out-of-bounds]: heap-based buffer underwrite cups-2.4.19/cups/ppd.c:2266:1: enter_function: entry to ‘_ppdOpenFile’ cups-2.4.19/cups/ppd.c:2285:6: branch_false: following ‘false’ branch (when ‘filename’ is non-NULL)... cups-2.4.19/cups/ppd.c:2296:13: branch_false: ...to here cups-2.4.19/cups/ppd.c:2296:6: branch_true: following ‘true’ branch... cups-2.4.19/cups/ppd.c:2298:11: branch_true: ...to here cups-2.4.19/cups/ppd.c:2298:11: call_function: calling ‘_ppdOpen’ from ‘_ppdOpenFile’ # 3197| lineptr --; # 3198| # 3199|-> *lineptr = '\0'; # 3200| # 3201| DEBUG_printf(("9ppd_read: LINE=\"%s\"", line->buffer));
| analyzer-version-clippy | 1.95.0 |
| analyzer-version-cppcheck | 2.20.0 |
| 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.95.0 |
| diffbase-analyzer-version-cppcheck | 2.20.0 |
| 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-77.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 | cups-2.4.16-7.fc44 |
| diffbase-store-results-to | /tmp/tmpuo9i5c5b/cups-2.4.16-7.fc44.tar.xz |
| diffbase-time-created | 2026-06-01 11:49:18 |
| diffbase-time-finished | 2026-06-01 11:52:59 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpuo9i5c5b/cups-2.4.16-7.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpuo9i5c5b/cups-2.4.16-7.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-77.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 | cups-2.4.19-3.fc45 |
| store-results-to | /tmp/tmpnyz84a9p/cups-2.4.19-3.fc45.tar.xz |
| time-created | 2026-06-01 11:53:25 |
| time-finished | 2026-06-01 11:56:36 |
| title | Newly introduced findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpnyz84a9p/cups-2.4.19-3.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpnyz84a9p/cups-2.4.19-3.fc45.src.rpm' |
| tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |