File aubio-resampler-NULL-deref-fix.patch of Package aubio.8279
From: Takashi Iwai <tiwai@suse.de>
Subject: Fix a NULl dereference in aubio_source_avcodec_readframe()
References: bsc#1072317 CVE-2017-17554
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
src/io/source_avcodec.c | 3 +++
1 file changed, 3 insertions(+)
--- a/src/io/source_avcodec.c
+++ b/src/io/source_avcodec.c
@@ -269,6 +269,9 @@ void aubio_source_avcodec_readframe(aubi
goto beach;
}
+ if (!avr)
+ goto beach;
+
int in_linesize = 0;
av_samples_get_buffer_size(&in_linesize, avCodecCtx->channels,
avFrame->nb_samples, avCodecCtx->sample_fmt, 1);