mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 10:27:24 +00:00
...
This commit is contained in:
parent
e49d940621
commit
9bcbdb9f14
1 changed files with 1 additions and 1 deletions
|
|
@ -1574,7 +1574,7 @@ handle_animation_frame_load_command(GraphicsManager *self, GraphicsCommand *g, I
|
|||
|
||||
const unsigned long bytes_per_pixel = load_data->is_opaque ? 3 : 4;
|
||||
if (load_data->data_sz < bytes_per_pixel * load_data->width * load_data->height)
|
||||
ABRT("ENODATA", "Insufficient image data %zu < %zu", load_data->data_sz, bytes_per_pixel * g->data_width, g->data_height);
|
||||
ABRT("ENODATA", "Insufficient image data %zu < %zu", load_data->data_sz, bytes_per_pixel * g->data_width * g->data_height);
|
||||
if (load_data->width > img->width)
|
||||
ABRT("EINVAL", "Frame width %u larger than image width: %u", load_data->width, img->width);
|
||||
if (load_data->height > img->height)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue