Fixed defects

List of Defects

Error: CPPCHECK_WARNING (CWE-758): [#def1]
librepo-1.17.0-build/librepo-1.17.0/librepo/types.h:77: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#   75|       LR_AUTH_DIGEST_IE   = (1<<4),  /*!< HTTP Digest authentication with an IE flavor */
#   76|       LR_AUTH_NTLM_WB     = (1<<5),  /*!< NTLM delegating to winbind helper */
#   77|->     LR_AUTH_ONLY        = (1<<31), /*!< This is a meta symbol. OR this value
#   78|                                           together with a single specific auth
#   79|                                           value to force libcurl to probe for

Error: COMPILER_WARNING (CWE-704): [#def2]
librepo-1.17.0-build/librepo-1.17.0/librepo/xmlparser.c: scope_hint: In function ‘lr_xml_parser_generic’
librepo-1.17.0-build/librepo-1.17.0/librepo/xmlparser.c:177:33: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
#  175|   
#  176|           if (xmlParseChunk(ctxt, buf, len, len == 0)) {
#  177|->             xmlErrorPtr error = xmlCtxtGetLastError(ctxt);
#  178|               ret = FALSE;
#  179|   

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-56.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namelibrepo-1.17.1-2.fc41
diffbase-store-results-to/tmp/tmp10qc7sjy/librepo-1.17.1-2.fc41.tar.xz
diffbase-time-created2024-07-03 15:52:50
diffbase-time-finished2024-07-03 15:54:20
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp10qc7sjy/librepo-1.17.1-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp10qc7sjy/librepo-1.17.1-2.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-56.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namelibrepo-1.17.0-3.fc40
store-results-to/tmp/tmp28g8hunb/librepo-1.17.0-3.fc40.tar.xz
time-created2024-07-03 15:50:27
time-finished2024-07-03 15:52:25
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp28g8hunb/librepo-1.17.0-3.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp28g8hunb/librepo-1.17.0-3.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9