double-conversion-3.3.1-2.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.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-219.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namedouble-conversion-3.3.1-2.fc43
store-results-to/tmp/tmpljef15pn/double-conversion-3.3.1-2.fc43.tar.xz
time-created2025-04-25 12:22:35
time-finished2025-04-25 12:24:22
toolcsmock
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-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9