A Buffer Overflow is caused by writing data over the border of reserved memory space for something.
Which could cause all kind of errors and unwanted behaviours.
With sprintf you can't control how much characters(byte s) are being written into a reserved memory space.
the last character is always a "\0" escape sequence with sprintf and snprintf. So for a string of 4 characters like "abcd" I would need...
Leave a comment: