Newly introduced defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
jose-14-build/jose-14/tests/alg_comp.c: scope_hint: In function ‘test_long_string’
jose-14-build/jose-14/tests/alg_comp.c:55:28: warning[-Wanalyzer-malloc-leak]: leak of ‘get_random_string((unsigned int)inputlen)’
jose-14-build/jose-14/tests/alg_comp.c:20: included_from: Included from here.
#   53|   {
#   54|       assert(length);
#   55|->     uint8_t* c = (uint8_t*)malloc(length*sizeof(uint8_t));
#   56|       assert(c);
#   57|       for (uint32_t i=0; i<length; i++) {

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-198.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namejose-12-1.fc40
diffbase-store-results-to/tmp/tmp57g_1ei3/jose-12-1.fc40.tar.xz
diffbase-time-created2024-07-03 13:27:28
diffbase-time-finished2024-07-03 13:29:01
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp57g_1ei3/jose-12-1.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp57g_1ei3/jose-12-1.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-198.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namejose-14-1.fc41
store-results-to/tmp/tmpr8j55ahq/jose-14-1.fc41.tar.xz
time-created2024-07-03 13:29:10
time-finished2024-07-03 13:30:17
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpr8j55ahq/jose-14-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpr8j55ahq/jose-14-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9