Newly introduced defects

List of Defects

Error: COMPILER_WARNING (CWE-563): [#def1]
grub2-2.06-build/grub-2.06/grub-core/commands/search.c:205:31: warning[-Wunused-variable]: unused variable ‘dev’
#  205 |                 grub_device_t dev, dev_part;
#      |                               ^~~
#  203|       	        name_disk != NULL && *name_disk != '\0')
#  204|                 {
#  205|->                 grub_device_t dev, dev_part;
#  206|   
#  207|                   if (is_device_usb(name) && !is_device_usb(root_dev))

Error: COMPILER_WARNING (CWE-563): [#def2]
grub2-2.06-build/grub-2.06/grub-core/commands/search.c:205:36: warning[-Wunused-variable]: unused variable ‘dev_part’
#  205 |                 grub_device_t dev, dev_part;
#      |                                    ^~~~~~~~
#  203|       	        name_disk != NULL && *name_disk != '\0')
#  204|                 {
#  205|->                 grub_device_t dev, dev_part;
#  206|   
#  207|                   if (is_device_usb(name) && !is_device_usb(root_dev))

Error: COMPILER_WARNING (CWE-563): [#def3]
grub2-2.06-build/grub-2.06/grub-core/commands/search.c:210:25: warning[-Wunused-variable]: unused variable ‘longlist’
#  210 |                     int longlist = 0;
#      |                         ^~~~~~~~
#  208|                     {
#  209|                       char *quid_name = NULL;
#  210|->                     int longlist = 0;
#  211|                       struct uuid_context uuid_ctx;
#  212|                       int ret = 0;

Error: COMPILER_WARNING (CWE-704): [#def4]
grub2-2.06-build/grub-2.06/grub-core/commands/search_file.c:5: included_from: Included from here.
grub2-2.06-build/grub-2.06/grub-core/commands/search.c: scope_hint: In function ‘iterate_device’
grub2-2.06-build/grub-2.06/grub-core/commands/search.c:217:39: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
#  215|                       if (!grub_strcmp(quid_name, ctx->key))
#  216|                         {
#  217|->                         uuid_ctx.name = name;
#  218|                           uuid_ctx.uuid = quid_name;
#  219|   

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-29.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namegrub2-2.06-119.fc40
diffbase-store-results-to/tmp/tmpbjt4yf4d/grub2-2.06-119.fc40.tar.xz
diffbase-time-created2024-07-03 13:10:04
diffbase-time-finished2024-07-03 13:32:25
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpbjt4yf4d/grub2-2.06-119.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpbjt4yf4d/grub2-2.06-119.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-29.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namegrub2-2.06-124.fc41
store-results-to/tmp/tmp6dqmqws5/grub2-2.06-124.fc41.tar.xz
time-created2024-07-03 13:32:41
time-finished2024-07-03 13:54:36
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp6dqmqws5/grub2-2.06-124.fc41.tar.xz' '--gcc-analyze' '/tmp/tmp6dqmqws5/grub2-2.06-124.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9