- 博客(1)
- 资源 (2)
- 收藏
- 关注
转载 GCC 4.8及以上支持内存非法访问检查
gcc4.8及以上版本支持地址越界,野指针检查,只需要在编译时使用-fsanitize=address选项即可,当运行程序时如果访问非本程序申请的地址就会报错。 root@localhost:/home/ngos/practice> vi nullpoint.c 1 #include “stdio.h” 2 3 int main(int a
2017-07-28 18:47:26 1748
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人