Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] glib-2.88.0/gio/gdbusauthmechanismsha1.c:1250:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘error’ glib-2.88.0/gio/gdbusauthmechanismsha1.c:1217:3: branch_false: following ‘false’ branch (when ‘mechanism’ is non-NULL)... glib-2.88.0/gio/gdbusauthmechanismsha1.c:1217:3: branch_false: ...to here glib-2.88.0/gio/gdbusauthmechanismsha1.c:1218:3: branch_true: following ‘true’ branch... glib-2.88.0/gio/gdbusauthmechanismsha1.c:1219:3: branch_true: following ‘true’ branch... glib-2.88.0/gio/gdbusauthmechanismsha1.c:1225:12: branch_true: ...to here glib-2.88.0/gio/gdbusauthmechanismsha1.c:1226:6: branch_false: following ‘false’ branch... glib-2.88.0/gio/gdbusauthmechanismsha1.c:1234:3: branch_false: ...to here glib-2.88.0/gio/gdbusauthmechanismsha1.c:1236:6: branch_false: following ‘false’ branch... glib-2.88.0/gio/gdbusauthmechanismsha1.c:1243:3: branch_false: ...to here glib-2.88.0/gio/gdbusauthmechanismsha1.c:1245:3: release_memory: ‘error’ is NULL glib-2.88.0/gio/gdbusauthmechanismsha1.c:1247:6: branch_true: following ‘true’ branch... glib-2.88.0/gio/gdbusauthmechanismsha1.c:1249:7: branch_true: ...to here glib-2.88.0/gio/gdbusauthmechanismsha1.c:1250:98: release_memory: ‘error’ is NULL glib-2.88.0/gio/gdbusauthmechanismsha1.c:1250:32: danger: dereference of NULL ‘error’ # 1248| { # 1249| g_free (m->priv->reject_reason); # 1250|-> m->priv->reject_reason = g_strdup_printf ("Problems looking up entry in keyring: %s", error->message); # 1251| g_error_free (error); # 1252| m->priv->state = G_DBUS_AUTH_MECHANISM_STATE_REJECTED; Error: CPPCHECK_WARNING (CWE-758): [#def2] glib-2.88.0/glib/tests/bitlock.c:92: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 90| # 91| /* these bits must be set. */ # 92|-> g_assert_true (val & PARALLEL_LOCKMASK); # 93| g_assert_true (val & PARALLEL_SETMASK); # 94| Error: CPPCHECK_WARNING (CWE-758): [#def3] glib-2.88.0/glib/tests/bitlock.c:101: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 99| g_assert_cmpint (val, ==, val2); # 100| # 101|-> count_all = (val & ~(PARALLEL_LOCKMASK | PARALLEL_SETMASK)); # 102| # 103| if ((g_random_int () % 5) == 0) Error: CPPCHECK_WARNING (CWE-758): [#def4] glib-2.88.0/glib/tests/bitlock.c:160: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 158| { # 159| /* at last, the atomic must be unlocked. */ # 160|-> g_assert_true (!(val & PARALLEL_LOCKMASK)); # 161| } # 162| val &= ~(PARALLEL_LOCKMASK | PARALLEL_TOGGLEMASK | PARALLEL_SETMASK); Error: CPPCHECK_WARNING (CWE-758): [#def5] glib-2.88.0/glib/tests/bitlock.c:162: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 160| g_assert_true (!(val & PARALLEL_LOCKMASK)); # 161| } # 162|-> val &= ~(PARALLEL_LOCKMASK | PARALLEL_TOGGLEMASK | PARALLEL_SETMASK); # 163| g_assert_cmpint (val, ==, PARALLEL_MAX_COUNT_ALL); # 164| } Error: GCC_ANALYZER_WARNING (CWE-835): [#def6] glib-2.88.0/glib/tests/constructor-helper.c:158:5: warning[-Wanalyzer-infinite-loop]: infinite loop # 156| # 157| if (size > sizeof (buffer) - position) # 158|-> g_error ("Not enough space in the buffer"); # 159| # 160| memcpy_ (buffer + position, string, size); Error: GCC_ANALYZER_WARNING (CWE-835): [#def7] glib-2.88.0/glib/tests/constructor-helper.c:238:5: warning[-Wanalyzer-infinite-loop]: infinite loop # 236| { # 237| if (string_find_index_ (string) >= sizeof (buffer)) # 238|-> g_error ("String %s not present", string); # 239| }
| 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-243.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 | glib2-2.89.0-1.fc45 |
| diffbase-store-results-to | /tmp/tmpho2xpwz1/glib2-2.89.0-1.fc45.tar.xz |
| diffbase-time-created | 2026-06-01 12:34:25 |
| diffbase-time-finished | 2026-06-01 12:46:55 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpho2xpwz1/glib2-2.89.0-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpho2xpwz1/glib2-2.89.0-1.fc45.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-243.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 | glib2-2.88.0-1.fc44 |
| store-results-to | /tmp/tmpp8e7df0i/glib2-2.88.0-1.fc44.tar.xz |
| time-created | 2026-06-01 12:20:41 |
| time-finished | 2026-06-01 12:33:54 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpp8e7df0i/glib2-2.88.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpp8e7df0i/glib2-2.88.0-1.fc44.src.rpm' |
| tool-version | csmock-3.8.5.20260529.133039.g6f3b5c6-1.el9 |