[Hessianobjc-user] Bug in BBSHessianDecoder decodeByteChunks
Status: Alpha
Brought to you by:
cocoa_dood
|
From: Tom D. <tgd...@gm...> - 2007-12-16 07:40:49
|
I've found two problems here -- first the mallocs are:
uint8_t * readData = NULL;
readData = malloc(len * sizeof(readData));
sizeof(readData) is 4 -- the malloc should just be len bytes.
more seriously, the last block doesn't read it's length, so it assumes
the length is the same as the previous block (and has two extra bytes
of data which are actually the length)
Tom
|