Browsing All posts tagged under »buffer overflow«

A nasty string initialization bug in C

May 31, 2011

5

Today I encountered a bug that was quite difficult to find regarding strings. In order for strings to work they must be null-terminated, and this implies that an array of characters can contain a string with a length equal to the array size minus one, because there must be space for the null character. I […]

Follow

Get every new post delivered to your Inbox.

Join 450 other followers