double-conversion-3.4.0-1.fc44

List of Findings

Error: CPPCHECK_WARNING (CWE-476): [#def1]
double-conversion-3.4.0/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.4.0/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.4.0/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-164.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.4.0-1.fc44
store-results-to/tmp/tmpc0bz8pdx/double-conversion-3.4.0-1.fc44.tar.xz
time-created2026-01-08 15:52:28
time-finished2026-01-08 15:54:21
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpc0bz8pdx/double-conversion-3.4.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpc0bz8pdx/double-conversion-3.4.0-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9