aboutsummaryrefslogtreecommitdiffstats
path: root/tools/enum_options.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-06-14 09:19:38 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-06-15 17:30:33 +0200
commit9d921e38f436a431e6d457fe7e4700878e7327b9 (patch)
treee6c4f0cc9b336d0fc3a9118dbd4d3ba1ea015a85 /tools/enum_options.c
parentc49dfee90bc1c149410f7017e9cbbbeb4063ccdf (diff)
downloadffmpeg-9d921e38f436a431e6d457fe7e4700878e7327b9.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> (cherry picked from commit dfef1d5e3cd4dfead84416a01e6c9ff0da50b34d)
Diffstat (limited to 'tools/enum_options.c')
0 files changed, 0 insertions, 0 deletions