double-conversion-3.3.1-4.fc43

List of Findings

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);

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-144.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namedouble-conversion-3.3.1-4.fc43
store-results-to/tmp/tmpxs8gn5i3/double-conversion-3.3.1-4.fc43.tar.xz
time-created2026-01-08 13:47:29
time-finished2026-01-08 13:49:50
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'cppcheck,unicontrol,gcc,shellcheck,clippy' '-o' '/tmp/tmpxs8gn5i3/double-conversion-3.3.1-4.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpxs8gn5i3/double-conversion-3.3.1-4.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9