Commit 9dcbd005 authored by Max Kellermann's avatar Max Kellermann

decoder/dsf: add range check

parent 0ad2eb34
......@@ -151,6 +151,9 @@ dsf_read_metadata(Decoder *decoder, InputStream &is,
we use the actual data size as chunk size */
uint64_t data_size = data_chunk.size.Read();
if (data_size < sizeof(data_chunk))
return false;
data_size -= sizeof(data_chunk);
metadata->chunk_size = data_size;
......
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