diff options
Diffstat (limited to 'media-libs/libmikmod/files/3.2.0/006_all_CVE-2009-0179.patch')
-rw-r--r-- | media-libs/libmikmod/files/3.2.0/006_all_CVE-2009-0179.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/media-libs/libmikmod/files/3.2.0/006_all_CVE-2009-0179.patch b/media-libs/libmikmod/files/3.2.0/006_all_CVE-2009-0179.patch new file mode 100644 index 000000000000..f70c35e0bfe8 --- /dev/null +++ b/media-libs/libmikmod/files/3.2.0/006_all_CVE-2009-0179.patch @@ -0,0 +1,12 @@ +--- loaders/load_xm.c ++++ loaders/load_xm.c +@@ -611,7 +611,8 @@ static BOOL LoadInstruments(void) + nextwav[of.numsmp+u]=next; + next+=s->length; + +- if(_mm_eof(modreader)) { ++ /* last instrument is at the end of file in version 0x0104 */ ++ if(_mm_eof(modreader) && (mh->version<0x0104 || t<of.numins-1)) { + MikMod_free(nextwav);MikMod_free(wh); + nextwav=NULL;wh=NULL; + _mm_errno = MMERR_LOADING_SAMPLEINFO; |