aboutsummaryrefslogtreecommitdiffstats
path: root/main/libvorbis/CVE-2017-14633.patch
blob: 76af2652c8a3799f961e05f224f8a11f4fb4c176 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/lib/info.c
+++ b/lib/info.c
@@ -583,7 +583,7 @@ int vorbis_analysis_headerout(vorbis_dsp
   oggpack_buffer opb;
   private_state *b=v->backend_state;
 
-  if(!b||vi->channels<=0){
+  if(!b||vi->channels<=0||vi->channels>256){
     b = NULL;
     ret=OV_EFAULT;
     goto err_out;