Oracle Solaris Studio 12.2:使用 dbx 调试程序

写入到数组越界内存 (wob) 错误

问题:尝试写入到数组越界内存。

可能的原因:溢出堆块边界的迷失指针。

示例:

char *cp = malloc (10);
cp[10] = 'a';