|
-
May 25th, 2009, 09:44 AM
#2
Re: buffer overflow in a worker thread
I don't know how your dataBuf is defined, but this line looks suspicious:
PerIoData->dataBuf.buf[dwTransfered]=NULL;
if your dataBuf is of size 10, and dwTransfered is also 10, then you are addressing dataBuf[10] which is non-existent, i. e. you are writing behind your memory. This might cause a problem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|