Error: CPPCHECK_WARNING (CWE-758): [#def1] gcc-14.0.1-20240411/gcc/regs.h:286: error[shiftTooManyBits]: Shifting 64-bit value by 4294967296 bits is undefined behaviour # 284| end_regno = end_hard_regno (mode, regno); # 285| do # 286|-> SET_HARD_REG_BIT (*regs, regno); # 287| while (++regno < end_regno); # 288| } Error: CLANG_WARNING: [#def2] gcc-14.0.1-20240411/gcc/analyzer/access-diagram.cc:29: included_from: Included from here. gcc-14.0.1-20240411/gcc/tree.h:4174:12: warning[core.NullDereference]: Array access (via field 'val') results in a null pointer dereference # 4172| { # 4173| if (VL_EXP_CLASS_P (node)) # 4174|-> return VL_EXP_OPERAND_LENGTH (node); # 4175| else # 4176| return TREE_CODE_LENGTH (TREE_CODE (node)); Error: CLANG_WARNING: [#def3] gcc-14.0.1-20240411/gcc/gimple-ssa-warn-restrict.cc:24: included_from: Included from here. gcc-14.0.1-20240411/gcc/coretypes.h:472: included_from: Included from here. gcc-14.0.1-20240411/gcc/wide-int.h:877:5: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller # 875| { # 876| if (is_sign_extended) # 877|-> return this->get_val ()[0]; # 878| else # 879| return to_shwi (this->get_precision ()); Error: CLANG_WARNING: [#def4] gcc-14.0.1-20240411/gcc/wide-int.h:1266:3: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller # 1264| wide_int_storage::get_len () const # 1265| { # 1266|-> return len; # 1267| } # 1268| Error: CLANG_WARNING: [#def5] gcc-14.0.1-20240411/gcc/wide-int.h:1421:3: warning[core.uninitialized.UndefReturn]: Undefined or garbage value returned to caller # 1419| fixed_wide_int_storage <N>::get_len () const # 1420| { # 1421|-> return len; # 1422| } # 1423| Error: GCC_ANALYZER_WARNING (CWE-476): [#def6] gcc-14.0.1-20240411/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c: scope_hint: In function ‘newentry’ gcc-14.0.1-20240411/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): [#def7] gcc-14.0.1-20240411/newlib-cygwin-d45261f62a15f8abd94a1031020b9a9f455e4eed/newlib/doc/makedoc.c: scope_hint: In function ‘add_to_definition’ gcc-14.0.1-20240411/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): [#def8] gcc-14.0.1-20240411/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++;
analyzer-version-clang | 18.1.3 |
analyzer-version-cppcheck | 2.13.0 |
analyzer-version-gcc | 14.0.1 |
analyzer-version-gcc-analyzer | 14.0.1 |
analyzer-version-shellcheck | 0.10.0 |
diffbase-analyzer-version-clang | 18.1.3 |
diffbase-analyzer-version-cppcheck | 2.13.0 |
diffbase-analyzer-version-gcc | 14.0.1 |
diffbase-analyzer-version-gcc-analyzer | 14.0.1 |
diffbase-analyzer-version-shellcheck | 0.10.0 |
diffbase-enabled-plugins | clang, cppcheck, gcc, shellcheck |
diffbase-exit-code | 0 |
diffbase-host | ip-172-16-1-47.us-west-2.compute.internal |
diffbase-mock-config | fedora-41-x86_64 |
diffbase-project-name | gcc-14.0.1-0.15.fc40 |
diffbase-store-results-to | /tmp/tmp0s29yfe2/gcc-14.0.1-0.15.fc40.tar.xz |
diffbase-time-created | 2024-04-22 10:49:16 |
diffbase-time-finished | 2024-04-22 23:15:01 |
diffbase-tool | csmock |
diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp0s29yfe2/gcc-14.0.1-0.15.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp0s29yfe2/gcc-14.0.1-0.15.fc40.src.rpm' |
diffbase-tool-version | csmock-3.5.3-1.el9 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-47.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | gcc-14.0.1-0.15.fc41 |
store-results-to | /tmp/tmplrwik9ej/gcc-14.0.1-0.15.fc41.tar.xz |
time-created | 2024-04-22 23:16:02 |
time-finished | 2024-04-23 12:05:21 |
title | Newly introduced defects |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmplrwik9ej/gcc-14.0.1-0.15.fc41.tar.xz' '--gcc-analyze' '/tmp/tmplrwik9ej/gcc-14.0.1-0.15.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |