Blob Blame History Raw
diff -rupN --no-dereference speex-1.2.0/src/wav_io.c speex-1.2.0-new/src/wav_io.c
--- speex-1.2.0/src/wav_io.c	2015-07-23 20:05:56.000000000 +0200
+++ speex-1.2.0-new/src/wav_io.c	2021-11-22 09:02:04.365990468 +0100
@@ -108,7 +108,7 @@ int read_wav_header(FILE *file, int *rat
    stmp = le_short(stmp);
    *channels = stmp;
 
-   if (stmp>2)
+   if (stmp>2 || stmp<1)
    {
       fprintf (stderr, "Only mono and (intensity) stereo supported\n");
       return -1;