Sun Studio 12 Update 1: Debugging a Program With dbx

Read From Array Out-of-Bounds (rob) Error

Problem: Attempt to read from array out-of-bounds memory.

Possible causes: A stray pointer, overflowing the bounds of a heap block

Example:

char *cp = malloc (10);
char ch = cp[10];