Page 2 of 2

Re: Stack overflow or what?

Posted: Sun Nov 01, 2015 10:09 pm
by rew
For debugging: What happens if you roll your own memcpy?

Code: Select all

  for (i=0;i<len;i++) 
      dst[i] = src[i];
 
What /could/ be happening is that one of your pointers is not accessible. If you make it a separate function, prevent inlining and disable a bit of optimization you can step into the function and see the function's arguments.