Commit 07219816 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/mov: Do not overread iTunes metadata.

Fixes ticket #4425.
parent 4b030025
...@@ -342,7 +342,7 @@ retry: ...@@ -342,7 +342,7 @@ retry:
if (c->itunes_metadata && atom.size > 8) { if (c->itunes_metadata && atom.size > 8) {
int data_size = avio_rb32(pb); int data_size = avio_rb32(pb);
int tag = avio_rl32(pb); int tag = avio_rl32(pb);
if (tag == MKTAG('d','a','t','a')) { if (tag == MKTAG('d','a','t','a') && data_size <= atom.size) {
data_type = avio_rb32(pb); // type data_type = avio_rb32(pb); // type
avio_rb32(pb); // unknown avio_rb32(pb); // unknown
str_size = data_size - 16; str_size = data_size - 16;
......
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