summaryrefslogtreecommitdiff
path: root/libavformat/oggparsespeex.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-11-29 15:29:41 +0100
committerHendrik Leppkes <h.leppkes@gmail.com>2015-11-29 15:29:41 +0100
commit4aa900acbdf6bb4191aa65aad8dabf1224bf42f6 (patch)
tree533fbedc9d8bc3e68ca80e3c36ed4bcdfae129af /libavformat/oggparsespeex.c
parentbbfdeec0203b4c22b5b1723ae475bd0551cb5a25 (diff)
parentc8fa647811371885be421a84a2388529857fed23 (diff)
Merge commit 'c8fa647811371885be421a84a2388529857fed23'
* commit 'c8fa647811371885be421a84a2388529857fed23': oggparsespeex: Fix unchecked malloc Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavformat/oggparsespeex.c')
-rw-r--r--libavformat/oggparsespeex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/oggparsespeex.c b/libavformat/oggparsespeex.c
index 9b5c65f453..c86b12713e 100644
--- 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;
}