News for hackers. Stuff that matters.
Re:How security flaws work: the buffer overflow by w0000t on Wednesday August 26, 2015 @08:47AM (#10122511)
What!? Size of the array is always known to the programmer in C. In fact, if the programmer wants to get rid of that information, he/she must deliberately do so. Once one does that, the array becomes useless.

You also haven't explained how would that size information, which we already have, magically solve the problem.

Re:How security flaws work: the buffer overflow by cm2187 on Wednesday August 26, 2015 @11:03AM (#10123335)
A large part of overflows come from querying an array beyond its size. If the size of the array was already contained in the array (think of C# arrays which always have a Length property), developers could build more robust code that wouldn't rely on the size of the array being inferred from some other parts of the code.