Bug#510205: audiofile patch

2009-12-01 Thread Matthias Drochner
On Sat, 28 Nov 2009 16:30:28 +0100 Stefan Fritsch wrote: > I have completed the patch and added a few sanity checks. Reviewers > are wellcome. Thanks for getting this into shape. For MSADPCM, it is effectively identical to the code I've been using in pkgsrc for a couple of months (without the ex

Bug#510205: buffer overflow in libaudiofile

2009-01-12 Thread Matthias Drochner
It seems the root of the bug is some misunderstanding between the parsing and the decoding code about samples/frames per block. What is parsed as "samplesPerBlock" in the .wav file is a _frame_ count in reality, if we follow what seem to be libaudiofile's conventions. If you just decode less sampl