2 May
2009
2 May
'09
6:03 p.m.
On Sat, May 02, 2009, Kostya wrote:
I thought that the bitstream layer ensured that no read could go beyond the provided buffer. Looking at get_bits.h it does not seems to, so I have attached a patch that check that the provided buffer is wide enought.
Why not check it once during initialization? Decoder always read extra_bits*channels*samples+32, doesn't it? From wv docs, it does not seems that the order of the chunks is imposed, so I cannot suppose that INT32INFO (needed to know the number of bits) is received before EXTRA_BITS.
-- fenrir