mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
flacparse: fix off by one in frame size check
Yes, I was tracking another bug and the small test file I generated to test with improbably just happened to trigger this, with a second and last frame of 1615 bytes. https://bugzilla.gnome.org/show_bug.cgi?id=656649
This commit is contained in:
parent
5866c3a413
commit
6ac7ad8a2c
1 changed files with 1 additions and 1 deletions
|
@ -581,7 +581,7 @@ gst_flac_parse_frame_is_valid (GstFlacParse * flacparse,
|
|||
data = GST_BUFFER_DATA (buffer);
|
||||
size = GST_BUFFER_SIZE (buffer);
|
||||
|
||||
if (size <= flacparse->min_framesize)
|
||||
if (size < flacparse->min_framesize)
|
||||
goto need_more;
|
||||
|
||||
header_ret =
|
||||
|
|
Loading…
Reference in a new issue