OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
210461c
)
mov: avoid a memleak when multiple stss boxes are present
author
Anton Khirnov
<anton@khirnov.net>
Tue, 12 Aug 2014 14:39:10 +0000
(14:39 +0000)
committer
Anton Khirnov
<anton@khirnov.net>
Fri, 19 Dec 2014 07:01:46 +0000
(08:01 +0100)
CC: libav-stable@libav.org
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
4590a2d
..
aa81661
100644
(file)
--- a/
libavformat/mov.c
+++ b/
libavformat/mov.c
@@
-1819,6
+1819,7
@@
static int mov_read_stss(MOVContext *c, AVIOContext *pb, MOVAtom atom)
}
if (entries >= UINT_MAX / sizeof(int))
return AVERROR_INVALIDDATA;
+ av_freep(&sc->keyframes);
sc->keyframes = av_malloc(entries * sizeof(int));
if (!sc->keyframes)
return AVERROR(ENOMEM);