Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

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.

1 comment

nitrogen

Reply

jhallenworld  12 years ago

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).

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities