Fixed defects

List of Defects

Error: CLANG_WARNING: [#def1]
pam-1.6.0-build/Linux-PAM-1.6.0/libpam/pam_handlers.c:21: included_from: Included from here.
pam-1.6.0-build/Linux-PAM-1.6.0/libpam/include/pam_assemble_line.h:74:5: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
#   72|   static void _pam_buffer_clear(struct line_buffer *buffer)
#   73|   {
#   74|->     pam_overwrite_n(buffer->assembled, buffer->size);
#   75|       _pam_drop(buffer->assembled);
#   76|       pam_overwrite_n(buffer->chunk, buffer->chunk_size);

Error: CLANG_WARNING: [#def2]
pam-1.6.0-build/Linux-PAM-1.6.0/modules/pam_env/pam_env.c:254:14: warning[unix.MallocSizeof]: Result of 'malloc' is converted to a pointer of type 'char *', which is incompatible with sizeof operand type 'char **'
#  252|       }
#  253|   
#  254|->     *lines = malloc((key_number +1)* sizeof(char**));
#  255|       if (*lines == NULL) {
#  256|         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.1-4.fc41
diffbase-store-results-to/tmp/tmpjw_cqimv/pam-1.6.1-4.fc41.tar.xz
diffbase-time-created2024-07-03 16:47:13
diffbase-time-finished2024-07-03 16:51:07
diffbase-toolcsmock
diffbase-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'
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.0-2.fc40
store-results-to/tmp/tmptsaw68g3/pam-1.6.0-2.fc40.tar.xz
time-created2024-07-03 16:42:25
time-finished2024-07-03 16:46:49
titleFixed defects
toolcsmock
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'
tool-versioncsmock-3.5.3-1.el9