projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a4e4ad
)
mxf: Fix a possible leak of extradata
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 11 Dec 2012 13:43:47 +0000
(14:43 +0100)
committer
Luca Barbato
<lu_zero@gentoo.org>
Tue, 14 Jan 2014 17:13:29 +0000
(18:13 +0100)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/mxfdec.c
patch
|
blob
|
history
diff --git
a/libavformat/mxfdec.c
b/libavformat/mxfdec.c
index
7314dda
..
d3897fa
100644
(file)
--- a/
libavformat/mxfdec.c
+++ b/
libavformat/mxfdec.c
@@
-858,6
+858,8
@@
static int mxf_read_generic_descriptor(void *arg, AVIOContext *pb, int tag, int
default:
/* Private uid used by SONY C0023S01.mxf */
if (IS_KLV_KEY(uid, mxf_sony_mpeg4_extradata)) {
+ av_free(descriptor->extradata);
+ descriptor->extradata_size = 0;
descriptor->extradata = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE);
if (!descriptor->extradata)
return AVERROR(ENOMEM);