Riverbed Interview Question Software Engineer / Developers
0of 0 voteswhat all errors is possible if u write past the array bounds
if the array is on the stack:
1. Corruption of other d.s on the stack/corruption of variables on the stack
2. call stack corruption
Array in the heap:
1. heap corruption (corruption of data structures used by malloc/free etc)
2. corruption of other structures near the array on the heap
Segmentation fault - if the array is at the end of a page, or beginning of a page and you are writing into negative indices etc...

memory corruption, call stack corruption. In unix, scope is limited to these 2 inside a process. In RTOS, the corruption can span across multiple tasks/processes
- Anonymous on April 26, 2010 Edit | Flag Reply