Fixed defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c:1035:54: 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’
# 1033|                                   bytes[x + y * width] = 0;
# 1034|                           else
# 1035|->                                 bytes[x + y * width] =
# 1036|                                           ply_pixel_buffer_interpolate (old_buffer, old_x, old_y);
# 1037|                           old_x += step_x;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c: scope_hint: In function ‘ply_pixel_buffer_tile’
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.2
analyzer-version-cppcheck2.13.0
analyzer-version-gcc14.0.1
analyzer-version-gcc-analyzer14.0.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.2
diffbase-analyzer-version-cppcheck2.13.0
diffbase-analyzer-version-gcc14.0.1
diffbase-analyzer-version-gcc-analyzer14.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-215.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-nameplymouth-24.004.60-5.fc41
diffbase-store-results-to/tmp/tmpk1o0wxv4/plymouth-24.004.60-5.fc41.tar.xz
diffbase-time-created2024-04-17 06:17:58
diffbase-time-finished2024-04-17 06:20:29
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'shellcheck,clang,cppcheck,gcc' '-o' '/tmp/tmpk1o0wxv4/plymouth-24.004.60-5.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpk1o0wxv4/plymouth-24.004.60-5.fc41.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-215.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-nameplymouth-24.004.60-4.fc40
store-results-to/tmp/tmpp4lsxziv/plymouth-24.004.60-4.fc40.tar.xz
time-created2024-04-17 06:14:03
time-finished2024-04-17 06:17:13
titleFixed defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'shellcheck,clang,cppcheck,gcc' '-o' '/tmp/tmpp4lsxziv/plymouth-24.004.60-4.fc40.tar.xz' '--gcc-analyze' '/tmp/tmpp4lsxziv/plymouth-24.004.60-4.fc40.src.rpm'
tool-versioncsmock-3.5.3-1.el9