Fixed defects

List of Defects

Error: COMPILER_WARNING (CWE-704): [#def1]
cups-2.4.7-build/cups-2.4.7/scheduler/colorman.c: scope_hint: In function ‘colord_create_profile’
cups-2.4.7-build/cups-2.4.7/scheduler/colorman.c:1083:26: warning[-Wdiscarded-qualifiers]: passing argument 2 of ‘cupsArrayAdd’ discards ‘const’ qualifier from pointer target type
# 1083 |   cupsArrayAdd(profiles, profile_path);
#      |                          ^~~~~~~~~~~~
cups-2.4.7-build/cups-2.4.7/cups/array-private.h:16: included_from: Included from here.
cups-2.4.7-build/cups-2.4.7/cups/cups-private.h:20: included_from: Included from here.
cups-2.4.7-build/cups-2.4.7/scheduler/cupsd.h:18: included_from: Included from here.
cups-2.4.7-build/cups-2.4.7/scheduler/colorman.c:42: included_from: Included from here.
cups-2.4.7-build/cups-2.4.7/cups/array.h:50:61: note: expected ‘void *’ but argument is of type ‘const char *’
#   50 | extern int              cupsArrayAdd(cups_array_t *a, void *e) _CUPS_API_1_2;
#      |                                                       ~~~~~~^
# 1081|     dbus_message_iter_get_basic(&args, &profile_path);
# 1082|     cupsdLogMessage(CUPSD_LOG_DEBUG, "Created profile \"%s\".", profile_path);
# 1083|->   cupsArrayAdd(profiles, profile_path);
# 1084|   
# 1085|   out:

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-136.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namecups-2.4.10-1.fc41
diffbase-store-results-to/tmp/tmponzd93u1/cups-2.4.10-1.fc41.tar.xz
diffbase-time-created2024-07-03 12:18:48
diffbase-time-finished2024-07-03 12:23:24
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmponzd93u1/cups-2.4.10-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmponzd93u1/cups-2.4.10-1.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-136.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namecups-2.4.7-11.fc40
store-results-to/tmp/tmphi10vcbs/cups-2.4.7-11.fc40.tar.xz
time-created2024-07-03 12:13:40
time-finished2024-07-03 12:18:31
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmphi10vcbs/cups-2.4.7-11.fc40.tar.xz' '--gcc-analyze' '/tmp/tmphi10vcbs/cups-2.4.7-11.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9