Newly introduced defects

List of Defects

Error: CLANG_WARNING: [#def1]
pam-1.6.1-build/Linux-PAM-1.6.1/libpam_internal/pam_line.c:45:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#   43|       }
#   44|   
#   45|->     memcpy(buffer->assembled + buffer->len, start, len);
#   46|       buffer->len += len;
#   47|       buffer->assembled[buffer->len] = '\0';

Error: CLANG_WARNING: [#def2]
pam-1.6.1-build/Linux-PAM-1.6.1/modules/pam_env/pam_env.c:276:14: warning[unix.MallocSizeof]: Result of 'calloc' is converted to a pointer of type 'char *', which is incompatible with sizeof operand type 'char **'
#  274|       }
#  275|   
#  276|->     *lines = calloc((key_number + 1), sizeof(char**));
#  277|       if (*lines == NULL) {
#  278|         pam_syslog(pamh, LOG_ERR, "Cannot allocate memory.");

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-183.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namepam-1.6.0-2.fc40
diffbase-store-results-to/tmp/tmptsaw68g3/pam-1.6.0-2.fc40.tar.xz
diffbase-time-created2024-07-03 16:42:25
diffbase-time-finished2024-07-03 16:46:49
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmptsaw68g3/pam-1.6.0-2.fc40.tar.xz' '--gcc-analyze' '/tmp/tmptsaw68g3/pam-1.6.0-2.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-183.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namepam-1.6.1-4.fc41
store-results-to/tmp/tmpjw_cqimv/pam-1.6.1-4.fc41.tar.xz
time-created2024-07-03 16:47:13
time-finished2024-07-03 16:51:07
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpjw_cqimv/pam-1.6.1-4.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpjw_cqimv/pam-1.6.1-4.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9