Task #1726 - fixed.err
back to task #1726download
Error: GCC_ANALYZER_WARNING (CWE-476):
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):
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| }