projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afdff80
)
oggparsespeex: Fix unchecked malloc
author
Derek Buitenhuis
<derek.buitenhuis@gmail.com>
Sun, 22 Nov 2015 18:12:09 +0000
(18:12 +0000)
committer
Luca Barbato
<lu_zero@gentoo.org>
Mon, 23 Nov 2015 09:44:07 +0000
(10:44 +0100)
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/oggparsespeex.c
patch
|
blob
|
blame
|
history
diff --git
a/libavformat/oggparsespeex.c
b/libavformat/oggparsespeex.c
index
f7af794
..
3cc9012
100644
(file)
--- a/
libavformat/oggparsespeex.c
+++ b/
libavformat/oggparsespeex.c
@@
-47,6
+47,8
@@
static int speex_header(AVFormatContext *s, int idx) {
if (!spxp) {
spxp = av_mallocz(sizeof(*spxp));
+ if (!spxp)
+ return AVERROR(ENOMEM);
os->private = spxp;
}