shithub: aacdec

Download patch

ref: 712d0cf914f258be501344d116f6a461fcaecb86
parent: 7d0b06cb0ac64a0e9249e67a2addbc4df7c80bde
author: knik <knik>
date: Sat Jan 24 09:21:05 EST 2015

Fixed libfaad crash on fuzzed file. Patch by Fabian Greffrath.

--- a/libfaad/decoder.c
+++ b/libfaad/decoder.c
@@ -25,7 +25,7 @@
 ** Commercial non-GPL licensing of this software is possible.
 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
 **
-** $Id: decoder.c,v 1.118 2015/01/22 08:55:49 knik Exp $
+** $Id: decoder.c,v 1.119 2015/01/24 14:21:05 knik Exp $
 **/
 
 #include "common.h"
@@ -323,6 +323,9 @@
         }
         faad_endbits(&ld);
     }
+
+    if (!*samplerate)
+	return -1;
 
 #if (defined(PS_DEC) || defined(DRM_PS))
     /* check if we have a mono file */