Comment by nitrogen

12 years ago

Look at the man page for alloca(). Stack-allocated strings are more dangerous in the face of overflow than heap-allocated strings.

Well I did not mean that the strings are literally on the call stack. You can make your own stack (and it doesn't have to be a stack, just have the same semantics).