Error: CPPCHECK_WARNING (CWE-476): [#def1] gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:59: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: f # 57| f = fopen ("pixbuf-randomly-modified-image", "w"); # 58| g_assert (f != NULL); # 59|-> fwrite (img_copy, size, 1, f); # 60| g_assert (!ferror (f)); # 61| fclose (f); Error: GCC_ANALYZER_WARNING (CWE-775): [#def2] gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:60:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("pixbuf-randomly-modified-image", "w")’ gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:48:15: branch_true: following ‘true’ branch (when ‘i < n’)... gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:53:21: branch_true: ...to here gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:57:11: acquire_resource: opened here gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:58:7: branch_true: following ‘true’ branch... gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:59:7: branch_true: ...to here gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:60:7: danger: ‘fopen("pixbuf-randomly-modified-image", "w")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) # 58| g_assert (f != NULL); # 59| fwrite (img_copy, size, 1, f); # 60|-> g_assert (!ferror (f)); # 61| fclose (f); # 62| Error: GCC_ANALYZER_WARNING (CWE-401): [#def3] gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:60:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("pixbuf-randomly-modified-image", "w")’ gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:48:15: branch_true: following ‘true’ branch (when ‘i < n’)... gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:53:21: branch_true: ...to here gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:57:11: acquire_memory: allocated here gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:58:7: branch_true: following ‘true’ branch... gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:59:7: branch_true: ...to here gdk-pixbuf-2.44.4/tests/pixbuf-randomly-modified.c:60:7: danger: ‘fopen("pixbuf-randomly-modified-image", "w")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2) # 58| g_assert (f != NULL); # 59| fwrite (img_copy, size, 1, f); # 60|-> g_assert (!ferror (f)); # 61| fclose (f); # 62|
| 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 |
| diffbase-analyzer-version-clippy | 1.97.1 |
| diffbase-analyzer-version-cppcheck | 2.21.1 |
| 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-171.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 | gdk-pixbuf2-2.44.7-3.fc45 |
| diffbase-store-results-to | /tmp/tmpz9rdr8kc/gdk-pixbuf2-2.44.7-3.fc45.tar.xz |
| diffbase-time-created | 2026-08-03 14:32:12 |
| diffbase-time-finished | 2026-08-03 14:34:12 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpz9rdr8kc/gdk-pixbuf2-2.44.7-3.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpz9rdr8kc/gdk-pixbuf2-2.44.7-3.fc45.src.rpm' |
| diffbase-tool-version | csmock-3.8.7.HEAD-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-171.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 | gdk-pixbuf2-2.44.4-2.fc44 |
| store-results-to | /tmp/tmpmm4yf8d4/gdk-pixbuf2-2.44.4-2.fc44.tar.xz |
| time-created | 2026-08-03 14:28:47 |
| time-finished | 2026-08-03 14:31:39 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpmm4yf8d4/gdk-pixbuf2-2.44.4-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpmm4yf8d4/gdk-pixbuf2-2.44.4-2.fc44.src.rpm' |
| tool-version | csmock-3.8.7.HEAD-1.el9 |