mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
parent
8db9136e89
commit
3e45e6ba9f
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ gst_jpeg_parse_match_next_marker (const guint8 * data, guint size)
|
|||
if (G_UNLIKELY (gst_jpeg_parse_parse_tag_has_entropy_segment (tag))) {
|
||||
while (!(data[marker_len] == 0xff && data[marker_len + 1] != 0x00)) {
|
||||
++marker_len;
|
||||
if (G_UNLIKELY (marker_len > size))
|
||||
if (G_UNLIKELY (marker_len + 2 > size))
|
||||
goto need_more_data;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue