Author Topic: Overrunning stack space in function call  (Read 2796 times)

cappy2112

  • Community Member
  • Posts: 91
  • Hero Points: 0
Overrunning stack space in function call
« on: June 20, 2007, 12:47:22 am »

Is it possible to overrun the stack by passing too many arguments, or an argument that is too long?

I'm calling the preprocess()  function, but I'm manually pasting in the string, which is about 1200 defines.

In other words, the call to preprocess looks like

preprocess(" -w symbol1=1, symbol2=0 symbol3=1")

but there are at least 1200 symbols (yes, it's a HUUUGE project)

With that in mind, is it possible to blow away the stack when  preprocess() is called, because the argument is so big?