Task #52456 - fixed.err

back to task #52456
download
Error: GCC_ANALYZER_WARNING (CWE-476):
plymouth-24.004.60/redhat-linux-build/../src/libply-splash-core/ply-pixel-buffer.c:991:25: 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)((long int)y * width + (long int)x) * 4’
plymouth-24.004.60/redhat-linux-build/../src/libply-splash-core/ply-pixel-buffer.c:966:1: enter_function: entry to ‘ply_pixel_buffer_resize’
plymouth-24.004.60/redhat-linux-build/../src/libply-splash-core/ply-pixel-buffer.c:977:18: call_function: calling ‘ply_pixel_buffer_new’ from ‘ply_pixel_buffer_resize’
plymouth-24.004.60/redhat-linux-build/../src/libply-splash-core/ply-pixel-buffer.c:977:18: return_function: returning to ‘ply_pixel_buffer_resize’ from ‘ply_pixel_buffer_new’
plymouth-24.004.60/redhat-linux-build/../src/libply-splash-core/ply-pixel-buffer.c:987:21: branch_true: following ‘true’ branch...
plymouth-24.004.60/redhat-linux-build/../src/libply-splash-core/ply-pixel-buffer.c:988:25: branch_true: ...to here
plymouth-24.004.60/redhat-linux-build/../src/libply-splash-core/ply-pixel-buffer.c:989:29: branch_true: following ‘true’ branch...
plymouth-24.004.60/redhat-linux-build/../src/libply-splash-core/ply-pixel-buffer.c:990:33: branch_true: ...to here
plymouth-24.004.60/redhat-linux-build/../src/libply-splash-core/ply-pixel-buffer.c:992:33: call_function: calling ‘ply_pixel_buffer_interpolate’ from ‘ply_pixel_buffer_resize’
plymouth-24.004.60/redhat-linux-build/../src/libply-splash-core/ply-pixel-buffer.c:992:33: return_function: returning to ‘ply_pixel_buffer_resize’ from ‘ply_pixel_buffer_interpolate’
plymouth-24.004.60/redhat-linux-build/../src/libply-splash-core/ply-pixel-buffer.c:991:25: danger: ‘ply_pixel_buffer_get_argb32_data(ply_pixel_buffer_new((long unsigned int)width, (long unsigned int)height)) + (long unsigned int)((long int)y * width + (long int)x) * 4’ could be NULL: unchecked value from [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
#  989|                   for (x = 0; x < width; x++) {
#  990|                           old_x = x * scale_x;
#  991|->                         bytes[x + y * width] =
#  992|                                   ply_pixel_buffer_interpolate (old_buffer, old_x, old_y);
#  993|                   }