You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libmodplug/libmodplug-0.8-CVE-2006-419...

12 lines
487 B

--- libmodplug-0.8/src/sndfile.cpp~ 2006-03-20 05:22:32.000000000 +0200
+++ libmodplug-0.8/src/sndfile.cpp 2006-10-03 19:21:17.000000000 +0300
@@ -1081,7 +1081,7 @@
{
UINT len = 0, mem = pIns->nLength+6;
- if ((!pIns) || (pIns->nLength < 4) || (!lpMemFile)) return 0;
+ if ((!pIns) || ((int)pIns->nLength < 4) || (!lpMemFile)) return 0;
if (pIns->nLength > MAX_SAMPLE_LENGTH) pIns->nLength = MAX_SAMPLE_LENGTH;
pIns->uFlags &= ~(CHN_16BIT|CHN_STEREO);
if (nFlags & RSF_16BIT)