diff --git a/libmikmod-3.1.12-CVE-2009-3995,3996.diff b/libmikmod-3.1.12-CVE-2009-3995,3996.diff index 1d2b7ad..57e90a7 100644 --- a/libmikmod-3.1.12-CVE-2009-3995,3996.diff +++ b/libmikmod-3.1.12-CVE-2009-3995,3996.diff @@ -2,18 +2,24 @@ 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); - +@@ -747,6 +747,8 @@ BOOL IT_Load(BOOL curious) + ih. name##end =_mm_read_UBYTE(modreader); \ + ih. name##susbeg=_mm_read_UBYTE(modreader); \ + ih. name##susend=_mm_read_UBYTE(modreader); \ ++ if (ih. name##pts>= ENVPOINTS) \ ++ ih. name##pts = ENVPOINTS-1; \ + for(lp=0;lp= ENVPOINTS) \ ++ ih. name/**/pts = ENVPOINTS-1; \ + for(lp=0;lp