fix heap corruption in wineoss
Rein Klazes
rklazes at xs4all.nl
Thu Sep 2 15:01:45 CDT 2004
Hi,
Changelog:
dlls/winmm/wineoss : mixer.c
Fix a heap corruption in MIX_Init ( sizeof() != strlen() )
Rein.
--
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/dlls/winmm/wineoss/mixer.c 2004-09-01 08:57:38.000000000 +0200
+++ mywine/dlls/winmm/wineoss/mixer.c 2004-09-02 21:28:02.000000000 +0200
@@ -1445,7 +1445,7 @@
mixer_info info;
if (ioctl(mixer, SOUND_MIXER_INFO, &info) >= 0) {
MIX_Mixers[i].name = HeapAlloc(GetProcessHeap(),0,strlen(info.name) + 1);
- strncpy(MIX_Mixers[i].name, info.name, sizeof(info.name));
+ strcpy(MIX_Mixers[i].name, info.name);
} else {
/* FreeBSD up to at least 5.2 provides this ioctl, but does not
* implement it properly, and there are probably similar issues
More information about the wine-patches
mailing list