|
-
September 16th, 2015, 08:21 AM
#11
Re: SIGSEGVs, missing parts of input
 Originally Posted by Fides Facit Fortis
...
Still, the buffer couldn't be overflowing. recv is set to only accept 220 bytes, which is exactly the buffer size. Right?
Right,
but the 220-th character written into the buffer will overwrite the terminating NULL character, so the buffer could now contain the garbage beginning with the 221-th position!
Victor Nijegorodov
Tags for this Thread
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
|