[CVE-2017-14633]: Don't allow for more than 256 channels 81/164581/1
authorSejun Park <sejun79.park@samsung.com>
Wed, 20 Dec 2017 00:40:54 +0000 (09:40 +0900)
committerSejun Park <sejun79.park@samsung.com>
Wed, 20 Dec 2017 00:40:54 +0000 (09:40 +0900)
Change-Id: I17b8a0a97b4b97889bad757bb1ddfe20bb4331b4

lib/info.c

index c4706b0..ecced14 100644 (file)
@@ -578,7 +578,7 @@ int vorbis_analysis_headerout(vorbis_dsp_state *v,
   oggpack_buffer opb;
   private_state *b=v->backend_state;
 
-  if(!b){
+  if(!b||vi->channels<=0||vi->channels>256){
     ret=OV_EFAULT;
     goto err_out;
   }