Newly introduced defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1]
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.c: scope_hint: In function ‘get_terminal’
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.c:760:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘device_name’ where non-null expected
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.c:39: included_from: Included from here.
plymouth-24.004.60-build/plymouth-24.004.60/src/libply/ply-logger.h:149:9: note: in expansion of macro ‘ply_logger_trace’
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.c:973:9: note: in expansion of macro ‘ply_trace’
plymouth-24.004.60-build/plymouth-24.004.60/src/libply/ply-buffer.h:25: included_from: Included from here.
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-keyboard.h:29: included_from: Included from here.
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.h:25: included_from: Included from here.
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.c:20: included_from: Included from here.
/usr/include/string.h:159:12: note: argument 1 of ‘strncmp’ must be non-null
#  758|           ply_terminal_t *terminal;
#  759|   
#  760|->         if (strncmp (device_name, "/dev/", strlen ("/dev/")) == 0)
#  761|                   full_name = strdup (device_name);
#  762|           else

Error: GCC_ANALYZER_WARNING (CWE-688): [#def2]
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.c:765:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘full_name’ where non-null expected
plymouth-24.004.60-build/plymouth-24.004.60/src/libply/ply-logger.h:149:9: note: in expansion of macro ‘ply_logger_trace’
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-device-manager.c:973:9: note: in expansion of macro ‘ply_trace’
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  763|                   asprintf (&full_name, "/dev/%s", device_name);
#  764|   
#  765|->         if (strcmp (full_name, "/dev/tty0") == 0 ||
#  766|               strcmp (full_name, "/dev/tty") == 0 ||
#  767|               strcmp (full_name, ply_terminal_get_name (manager->local_console_terminal)) == 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c: scope_hint: In function ‘ply_pixel_buffer_tile’
plymouth-24.004.60-build/plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c:1067:46: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ply_pixel_buffer_get_argb32_data(ply_pixel_buffer_new((long unsigned int)width, (long unsigned int)height)) + (long unsigned int)(y * width + x) * 4’
# 1065|                   for (x = 0; x < width; x++) {
# 1066|                           old_x = x % old_width;
# 1067|->                         bytes[x + y * width] = old_bytes[old_x + old_y * old_width];
# 1068|                   }
# 1069|           }

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-217.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-nameplymouth-24.004.60-4.fc40
diffbase-store-results-to/tmp/tmp2m8gxol8/plymouth-24.004.60-4.fc40.tar.xz
diffbase-time-created2024-07-03 16:59:46
diffbase-time-finished2024-07-03 17:02:02
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp2m8gxol8/plymouth-24.004.60-4.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp2m8gxol8/plymouth-24.004.60-4.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-217.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameplymouth-24.004.60-12.fc41
store-results-to/tmp/tmpok2eae6_/plymouth-24.004.60-12.fc41.tar.xz
time-created2024-07-03 17:02:30
time-finished2024-07-03 17:04:22
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpok2eae6_/plymouth-24.004.60-12.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpok2eae6_/plymouth-24.004.60-12.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9