mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-25 21:10:10 +01:00
Fix off by one check in cairo-image-info.c
https://bugs.freedesktop.org/show_bug.cgi?id=101427
This commit is contained in:
parent
13ddd72977
commit
57b40507dd
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ _cairo_image_info_get_jpeg_info (cairo_image_info_t *info,
|
|||
break;
|
||||
}
|
||||
|
||||
if (p + 2 > data + length)
|
||||
if (p + 3 > data + length)
|
||||
return CAIRO_INT_STATUS_UNSUPPORTED;
|
||||
|
||||
p = _jpeg_skip_segment (p);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue