mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
typefindfunctions: prevent unsigned int overflow
https://bugzilla.gnome.org/show_bug.cgi?id=778432
This commit is contained in:
parent
66148a770c
commit
0889d89407
1 changed files with 1 additions and 1 deletions
|
@ -1506,7 +1506,7 @@ mp3_type_find_at_offset (GstTypeFind * tf, guint64 start_off,
|
||||||
offset += length;
|
offset += length;
|
||||||
}
|
}
|
||||||
g_assert (found <= GST_MP3_TYPEFIND_TRY_HEADERS);
|
g_assert (found <= GST_MP3_TYPEFIND_TRY_HEADERS);
|
||||||
if (head_data == NULL &&
|
if (found != 0 && head_data == NULL &&
|
||||||
gst_type_find_peek (tf, offset + start_off - 1, 1) == NULL)
|
gst_type_find_peek (tf, offset + start_off - 1, 1) == NULL)
|
||||||
/* Incomplete last frame - don't count it. */
|
/* Incomplete last frame - don't count it. */
|
||||||
found--;
|
found--;
|
||||||
|
|
Loading…
Reference in a new issue