diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-06-14 09:19:38 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-06-15 17:11:09 +0200 |
commit | dfef1d5e3cd4dfead84416a01e6c9ff0da50b34d (patch) | |
tree | 0619c6b1e775722d854e07ab57ec74290e8c41af /compat | |
parent | 6de6ce7bc80e874099895b6c73977bc2efb06a4d (diff) | |
download | ffmpeg-dfef1d5e3cd4dfead84416a01e6c9ff0da50b34d.tar.gz |
avformat/mov: Fix memleak upon encountering repeating tags
mov_read_custom tries to read three strings belonging to three different
tags. When an already encountered tag is encountered again, a new buffer
for the string to be read is allocated and stored in the pointer
destined for this particular tag. But in this scenario, said pointer
already holds the address of the string read earlier, leading to a leak.
This commit therefore aborts the reading process upon encountering
an already encountered tag.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'compat')
0 files changed, 0 insertions, 0 deletions