用于检测阵列溢出的工具 [英] Tool for detecting Array overflow

查看:62
本文介绍了用于检测阵列溢出的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

有没有可用于检测阵列溢出的免费工具?我找到了一个检测动态数组溢出的
。但是我需要一个工具(或者一个特殊的编译器)来检测静态数组溢出。


谢谢

Hi all,
Is there any free tool available for detecting array overflow? I found
one which detects overflow of dynamic arrays. But I need a tool(or a
special compiler) which detects static array overflows too.

Thanks

推荐答案

va******@rediffmail.com 写道:
va******@rediffmail.com writes:
大家好,
有没有可用于检测阵列溢出的免费工具?我找到了一个检测动态数组溢出的方法。但我需要一个工具(或特殊的编译器)来检测静态数组溢出。
Hi all,
Is there any free tool available for detecting array overflow? I found
one which detects overflow of dynamic arrays. But I need a tool(or a
special compiler) which detects static array overflows too.




< OT>

你收到的任何有用的答案可能都是特定于编译器的。

如果使用gcc,你的实例可能支持-fbounds-check

命令行选项。 />
< / OT>


-

克里斯。



<OT>
Any helpful answer you receive will probably be very compiler-specific.
If using gcc, your instance of it may support the -fbounds-check
command line option.
</OT>

--
Chris.


va******@rediffmail.com 写道:
大家好,
Hi all,
Is there any free tool available for detecting array overflow? I found
one which detects overflow of dynamic arrays. But I need a tool(or a
special compiler) which detects static array overflows too.




只要做你老师总是告诉你的事情。在使用阵列之前检查你的边界





Just do what your teachers always tell you to do. Check your bounds
before using the array.


va ****** @ rediffmail.com 写道:
大家好,
有没有可用于检测阵列溢出的免费工具?我找到了一个检测动态数组溢出的方法。但我需要一个工具(或一个特殊的编译器)来检测静态数组溢出。
谢谢
Hi all,
Is there any free tool available for detecting array overflow? I found
one which detects overflow of dynamic arrays. But I need a tool(or a
special compiler) which detects static array overflows too.

Thanks




在linux上你可以使用valgrind, http://valgrind.kde.org

Bj?rn



On linux you can use valgrind, http://valgrind.kde.org.
Bj?rn


这篇关于用于检测阵列溢出的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆