Browse Source

oggparsespeex: Fix unchecked malloc

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n3.0
Derek Buitenhuis Luca Barbato 10 years ago
parent
commit
c8fa647811
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/oggparsespeex.c

+ 2
- 0
libavformat/oggparsespeex.c View File

@@ -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;
}



Loading…
Cancel
Save