Quote:
Originally Posted by karthikb23
Shouldnt SEGV occur when my program accesses any memory outside its allocated space? (let alone valid/invalid addessses)
|
It's an implementation detail how strict this is, some architectures may just summon up the virtual memory and add it to your working set, especially if the OS thinks you are just extending the stack.
Also different architectures are stricter than others regarding (a) writing over code areas (b) misaligned access.