Task #78192 - fixed.err
back to task #78192download
Error: GCC_ANALYZER_WARNING (CWE-476):
plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c:1033:33: 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’
plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c:999:1: enter_function: entry to ‘ply_pixel_buffer_rotate’
plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c:1014:18: call_function: calling ‘ply_pixel_buffer_new’ from ‘ply_pixel_buffer_rotate’
plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c:1014:18: return_function: returning to ‘ply_pixel_buffer_rotate’ from ‘ply_pixel_buffer_new’
plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c:1026:21: branch_true: following ‘true’ branch (when ‘y < height’)...
plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c:1029:17: branch_true: ...to here
plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c:1031:29: branch_true: following ‘true’ branch (when ‘x < width’)...
plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c:1032:28: branch_true: ...to here
plymouth-24.004.60/src/libply-splash-core/ply-pixel-buffer.c:1033:33: danger: ‘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’ could be NULL: unchecked value from [(8)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/7)
# 1031| for (x = 0; x < width; x++) {
# 1032| if (old_x < 0 || old_x > width || old_y < 0 || old_y > height)
# 1033|-> bytes[x + y * width] = 0;
# 1034| else
# 1035| bytes[x + y * width] =