Newly introduced defects

List of Defects

Error: CLANG_WARNING: [#def1]
pcre2-10.44-build/pcre2-10.44/src/pcre2_match.c:6038:66: warning[core.NullDereference]: Access to field 'eptr' results in a dereference of a null pointer (loaded from variable 'P')
# 6036|   
# 6037|         case OP_ASSERTBACK_NOT:
# 6038|->       if (branch_start[1 + LINK_SIZE] == OP_VREVERSE && Feptr != P->eptr)
# 6039|           RRETURN(MATCH_NOMATCH);
# 6040|         /* Fall through */

Error: CLANG_WARNING: [#def2]
pcre2-10.44-build/pcre2-10.44/src/pcre2_match.c:6050:29: warning[core.NullDereference]: Access to field 'eptr' results in a dereference of a null pointer (loaded from variable 'P')
# 6048|   
# 6049|         case OP_SCRIPT_RUN:
# 6050|->       if (!PRIV(script_run)(P->eptr, Feptr, utf)) RRETURN(MATCH_NOMATCH);
# 6051|         break;
# 6052|   

Error: CLANG_WARNING: [#def3]
pcre2-10.44-build/pcre2-10.44/src/pcre2_match.c:6081:26: warning[core.NullDereference]: Access to field 'eptr' results in a dereference of a null pointer (loaded from variable 'P')
# 6079|         offset = (number << 1) - 2;
# 6080|         Fcapture_last = number;
# 6081|->       Fovector[offset] = P->eptr - mb->start_subject;
# 6082|         Fovector[offset+1] = Feptr - mb->start_subject;
# 6083|         if (offset >= Foffset_top) Foffset_top = offset + 2;

Error: CLANG_WARNING: [#def4]
pcre2-10.44-build/pcre2-10.44/src/pcre2posix.c:235:39: warning[core.NullDereference]: Access to field 're_erroffset' results in a dereference of a null pointer (loaded from variable 'preg')
#  233|         /* pre C99 snprintf returns used, so redo ret to fix that */
#  234|   
#  235|->       ret = message_len(message, (int)preg->re_erroffset);
#  236|       }
#  237|   } while (0);

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-227.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namepcre2-10.42-2.fc40.2
diffbase-store-results-to/tmp/tmpkfhzh6c_/pcre2-10.42-2.fc40.2.tar.xz
diffbase-time-created2024-07-03 16:29:19
diffbase-time-finished2024-07-03 16:35:06
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpkfhzh6c_/pcre2-10.42-2.fc40.2.tar.xz' '--gcc-analyze' '/tmp/tmpkfhzh6c_/pcre2-10.42-2.fc40.2.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-227.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namepcre2-10.44-1.fc41
store-results-to/tmp/tmp_wiuq1lx/pcre2-10.44-1.fc41.tar.xz
time-created2024-07-03 16:35:29
time-finished2024-07-03 16:40:52
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp_wiuq1lx/pcre2-10.44-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp_wiuq1lx/pcre2-10.44-1.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9