Error: CPPCHECK_WARNING (CWE-476): [#def1] libbytesize-2.12/src/bs_size.c:112: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: size # 110| static void bs_size_init (BSSize size) { # 111| /* let's start with 64 bits of space */ # 112|-> mpz_init2 (size->bytes, (mp_bitcnt_t) 64); # 113| } # 114| Error: GCC_ANALYZER_WARNING (CWE-457): [#def2] libbytesize-2.12/src/bs_size.c:498:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*<unknown>' libbytesize-2.12/src/bs_size.c:437:8: enter_function: entry to 'bs_size_new_from_str' libbytesize-2.12/src/bs_size.c:470:8: branch_false: following 'false' branch... libbytesize-2.12/src/bs_size.c:492:20: branch_false: ...to here libbytesize-2.12/src/bs_size.c:492:20: call_function: calling 'replace_char_with_str' from 'bs_size_new_from_str' libbytesize-2.12/src/bs_size.c:492:20: return_function: returning to 'bs_size_new_from_str' from 'replace_char_with_str' libbytesize-2.12/src/bs_size.c:493:8: branch_false: following 'false' branch... libbytesize-2.12/src/bs_size.c:498:15: branch_false: ...to here libbytesize-2.12/src/bs_size.c:498:15: danger: use of uninitialized value '*<unknown>' here # 496| return NULL; # 497| } # 498|-> str_len = strlen (loc_size_str); # 499| # 500| match_data = pcre2_match_data_create_from_pattern (regex, NULL);
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| 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-164.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.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libbytesize-2.12-1.fc44 |
| store-results-to | /tmp/tmp05n5hcy_/libbytesize-2.12-1.fc44.tar.xz |
| time-created | 2026-01-08 18:38:23 |
| time-finished | 2026-01-08 18:39:43 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp05n5hcy_/libbytesize-2.12-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp05n5hcy_/libbytesize-2.12-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |