diff --git a/libmikmod-3.1.12-CVE-2009-3995,3996.diff b/libmikmod-3.1.12-CVE-2009-3995,3996.diff new file mode 100644 index 0000000..1d2b7ad --- /dev/null +++ b/libmikmod-3.1.12-CVE-2009-3995,3996.diff @@ -0,0 +1,31 @@ +Index: loaders/load_it.c +=================================================================== +--- loaders/load_it.c.orig ++++ loaders/load_it.c +@@ -862,6 +862,11 @@ BOOL IT_Load(BOOL curious) + #endif + + IT_ProcessEnvelope(vol); ++ ++ // Secunia SA37775 ++ if (ih.volpts>= ENVPOINTS) ++ ih.volpts = ENVPOINTS-1; ++ + for(u=0;uvolenv[u].val=(ih.volnode[u]<<2); + +Index: loaders/load_ult.c +=================================================================== +--- loaders/load_ult.c.orig ++++ loaders/load_ult.c +@@ -225,6 +225,10 @@ BOOL ULT_Load(BOOL curious) + for(t=0;t=UF_MAXCHAN) ++ of.numchn=UF_MAXCHAN - 1; ++ + /* read pan position table for v1.5 and higher */ + if(mh.id[14]>='3') { + for(t=0;t