Thursday, June 4, 2009

Naughty, Naughty Stack

I started noticing some erratic behavior with my code, and after some digging around it looks like the WiShield stack & driver have a memory corruption issue. The default setting creates a 400 byte buffer, but then the driver code writes 417 bytes into it. Hmmm, that's not good. I submitted details to Async Labs, hopefully they can fix it soon.

In the meantime, I've set the TCP window size to 300 bytes and added a 'safey malloc' to put a little space between my data and the stack code.

No comments:

Post a Comment