Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
gcc-14.2.1-build/gcc-14.2.1-20241104/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c: scope_hint: In function ‘newentry’
gcc-14.2.1-build/gcc-14.2.1-20241104/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c:1153:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new’
# 1151|   {
# 1152|       dict_type *new = (dict_type *)malloc(sizeof(dict_type));
# 1153|->     new->word = word;
# 1154|       new->next = root;
# 1155|       root = new;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
gcc-14.2.1-build/gcc-14.2.1-20241104/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c: scope_hint: In function ‘add_to_definition’
gcc-14.2.1-build/gcc-14.2.1-20241104/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c:1170:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
# 1168|       {
# 1169|   	entry->code_length += 2;
# 1170|-> 	entry->code =
# 1171|   	 (stinst_type *) realloc((char *)(entry->code),
# 1172|   			       entry->code_length *sizeof(word_type));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
gcc-14.2.1-build/gcc-14.2.1-20241104/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c:1174:34: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*entry.code + (long unsigned int)*entry.code_end * 8’
# 1172|   			       entry->code_length *sizeof(word_type));
# 1173|       }
# 1174|->     entry->code[entry->code_end] = word;
# 1175|       
# 1176|   return     entry->code_end++;  

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.82.0
diffbase-analyzer-version-cppcheck2.16.0
diffbase-analyzer-version-gcc14.2.1
diffbase-analyzer-version-gcc-analyzer15.0.0
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-163.us-west-2.compute.internal
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namegcc-14.2.1-3.fc41
diffbase-store-results-to/tmp/tmpkwyb982a/gcc-14.2.1-3.fc41.tar.xz
diffbase-time-created2024-11-12 23:48:43
diffbase-time-finished2024-11-13 09:47:20
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpkwyb982a/gcc-14.2.1-3.fc41.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpkwyb982a/gcc-14.2.1-3.fc41.src.rpm'
diffbase-tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-163.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namegcc-14.2.1-6.fc42
store-results-to/tmp/tmp5tevtzg7/gcc-14.2.1-6.fc42.tar.xz
time-created2024-11-13 09:48:25
time-finished2024-11-13 19:50:27
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp5tevtzg7/gcc-14.2.1-6.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp5tevtzg7/gcc-14.2.1-6.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9