MCIWAVE: prevent division by zero when processing non-PCM codec
Alex Villacís Lasso
a_villacis at palosanto.com
Mon Jun 25 12:42:47 CDT 2007
The following test app:
http://www.palosanto.com/~a_villacis/acmapp.tar.bz2
can make msacm crash with a division by zero when opening a WAV file
with a non-PCM codec, and then selecting the "Player!" menu option. This
app is one sample of the Visual Studio 6 samples.
One file on which this sample crashes is the following one (MP3 codec):
http://www.palosanto.com/~a_villacis/WorldsApart.wav
Patch attached to fix this bug.
Changelog:
* Prevent division by zero on processing of non-PCM codec
--
perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-mciwave-divzero_protect.patch
Type: text/x-patch
Size: 590 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070625/77003d50/wine-mciwave-divzero_protect.bin
More information about the wine-patches
mailing list