Error: CPPCHECK_WARNING (CWE-476): [#def1] double-conversion-3.3.1/test/cctest/cctest.cc:42: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result # 40| size_t len = strlen(str); # 41| char* result = reinterpret_cast<char*>(malloc(len + 1)); # 42|-> memcpy(result, str, len + 1); # 43| return result; # 44| } Error: CPPCHECK_WARNING (CWE-457): [#def2] double-conversion-3.3.1/test/cctest/test-conversions.cc:2140: warning[uninitvar]: Uninitialized variable: buffer16 # 2138| int processed_characters_count16; # 2139| bool processed_all16; # 2140|-> double result16 = StrToD16(buffer16, len, flags, empty_string_value, # 2141| &processed_characters_count16, &processed_all16, # 2142| separator); Error: CPPCHECK_WARNING (CWE-457): [#def3] double-conversion-3.3.1/test/cctest/test-conversions.cc:4265: warning[uninitvar]: Uninitialized variable: buffer16 # 4263| int processed_characters_count16; # 4264| bool processed_all16; # 4265|-> float result16 = StrToF16(buffer16, len, flags, empty_string_value, # 4266| &processed_characters_count16, # 4267| &processed_all16);
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-219.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.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | double-conversion-3.3.1-2.fc43 |
store-results-to | /tmp/tmpljef15pn/double-conversion-3.3.1-2.fc43.tar.xz |
time-created | 2025-04-25 12:22:35 |
time-finished | 2025-04-25 12:24:22 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpljef15pn/double-conversion-3.3.1-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpljef15pn/double-conversion-3.3.1-2.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |