Documentation Home
>
Oracle Solaris Studio 12.2:使用 dbx 调试程序
>
第 9 章 使用运行时检查
>
运行时检查错误
>
访问错误
> 写入到数组越界内存 (wob) 错误
Oracle Solaris Studio 12.2:使用 dbx 调试程序
Previous
: 从未初始化的内存中读 (rui) 错误
Next
: 写入到只读内存 (wro) 错误
写入到数组越界内存 (
wob
) 错误
问题:尝试写入到数组越界内存。
可能的原因:溢出堆块边界的迷失指针。
示例:
char *cp = malloc (10); cp[10] = 'a';
Previous
: 从未初始化的内存中读 (rui) 错误
Next
: 写入到只读内存 (wro) 错误
© 2010, Oracle Corporation and/or its affiliates