Commit b95ddd55 authored by Sebastian Dröge's avatar Sebastian Dröge

flacparse: Make sure we have enough data to read image tags

Thanks to iputinei for reporting this on IRC.
parent 9f9ba214
......@@ -1129,6 +1129,9 @@ gst_flac_parse_handle_picture (GstFlacParse * flacparse, GstBuffer * buffer)
if (!gst_byte_reader_get_uint32_be (&reader, &img_len))
goto error;
if (gst_byte_reader_get_pos (&reader) + img_len > map.size)
goto error;
if (!flacparse->tags)
flacparse->tags = gst_tag_list_new_empty ();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment