File cve-2017-17555.diff of Package ffmpeg.8100
From: Jan Engelhardt <jengelh@inai.de>
Date: 2018-02-12 13:30:29.256158366 +0100
References: https://bugzilla.suse.com/show_bug.cgi?id=1072366
References: CVE-2017-17555
diff --git a/libswresample/audioconvert.c b/libswresample/audioconvert.c
index 96ce84ac44..a2dae9c82d 100644
--- a/libswresample/audioconvert.c
+++ b/libswresample/audioconvert.c
@@ -239,7 +239,7 @@ int swri_audio_convert(AudioConvert *ctx, AudioData *out, AudioData *in, int len
const uint8_t *pi= ich < 0 ? ctx->silence : in->ch[ich];
uint8_t *po= out->ch[ch];
uint8_t *end= po + os*len;
- if(!po)
+ if (!pi || !po)
continue;
ctx->conv_f(po+off*os, pi+off*is, is, os, end);
}