Blame SOURCES/speex-CVE-2020-23903.patch

4a2f8e
diff --git a/src/wav_io.c b/src/wav_io.c
4a2f8e
index b51830158f4defb536a760c93a77567daf69a74b..09d62eb017bb48fe48fa1efcaa122719ef1fe39f 100644
4a2f8e
--- a/src/wav_io.c
4a2f8e
+++ b/src/wav_io.c
4a2f8e
@@ -111,7 +111,7 @@ int read_wav_header(FILE *file, int *rate, int *channels, int *format, spx_int32
4a2f8e
    stmp = le_short(stmp);
4a2f8e
    *channels = stmp;
4a2f8e
 
4a2f8e
-   if (stmp>2)
4a2f8e
+   if (stmp>2 || stmp<1)
4a2f8e
    {
4a2f8e
       fprintf (stderr, "Only mono and (intensity) stereo supported\n");
4a2f8e
       return -1;
4a2f8e