From 4f2d8968c04ef76bb18df103a1287b864c0e6fe6 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 27 Oct 2013 09:36:12 +0100 Subject: oggparsetheora: check av_mallocz result --- libavformat/oggparsetheora.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavformat/oggparsetheora.c') diff --git a/libavformat/oggparsetheora.c b/libavformat/oggparsetheora.c index 3d5785b74c..961096edaa 100644 --- a/libavformat/oggparsetheora.c +++ b/libavformat/oggparsetheora.c @@ -50,6 +50,8 @@ static int theora_header(AVFormatContext *s, int idx) if (!thp) { thp = av_mallocz(sizeof(*thp)); + if (!thp) + return AVERROR(ENOMEM); os->private = thp; } -- cgit v1.2.3