Hmmm .... you ask about integer overflow, and then it turns into a discussion of stack size versus the size of an array that can be declared. Two different things.

Stack size is also determined by operating system settings, account quotas, etc.