arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1208.3205cs.CRcs.SE
收藏

软件安全性分析,静态和动态测试,在java和C环境下的比较研究

Software Security analysis, static and dynamic testing in java and C environment, a comparative study

Manas Gaur

摘要:

本文的主要工作是针对各种程序设计语言设计的主要源代码中出现的缓冲区溢出异常进行分析。它描述了如何改进代码并增加其强度,以抵御代码中易受攻击区域发生的安全盗窃。使用的主要语言是JAVA,被认为是最面向对象的语言之一,仍然会产生很多错误,如堆栈溢出,非法/不适当的方法重写。我使用局限于JAVA的工具来测试如何在编译之前纠正代码中的弱点。字节码盗窃是很难被征服的,所以最好是在纯java代码本身中摆脱它。研究中使用的工具是PMD(编程错误检测器),它有助于检测在不久的将来会弹出错误的代码行,例如hashcode(内存映射)重写中的缺陷,由于这些缺陷,Java代码将无法正常运行。另一个工具是FindBUGS,它提供了代码的测试器来分析代码中的弱点,如无限循环,非同步等待,死锁情况,空引用和解引用。为上述工具提供基础的另一个工具是JaCoCo代码覆盖分析,用于检测代码的不可达部分和未使用条件,这改善了空间复杂度并有助于容易地澄清错误。通过本文,我们设计了一种防止数据丢失的算法。主要受众是白盒测试人员,他们可能会在主要的源程序中遗漏基本的代码行,如索引变量、无限循环和不适当的散列代码。该算法用于减少缓冲区溢出情况下的损坏

英文摘要:

The main stretch in the paper is buffer overflow anomaly occurring in major source codes, designed in various programming language. It describes the various as to how to improve your code and increase its strength to withstand security theft occurring at vulnerable areas in the code. The main language used is JAVA, regarded as one of the most object oriented language still create lot of error like stack overflow, illegal/inappropriate method overriding. I used tools confined to JAVA to test as how weak points in the code can be rectified before compiled. The byte code theft is difficult to be conquered, so it's a better to get rid of it in the plain java code itself. The tools used in the research are PMD(Programming mistake detector), it helps to detect line of code that make pop out error in near future like defect in hashcode(memory maps) overriding due to which the java code will not function correctly. Another tool is FindBUGS which provide the tester of the code to analyze the weak points in the code like infinite loop, unsynchronized wait, deadlock situation, null referring and dereferencing. Another tool which provides the base to above tools is JaCoCo code coverage analysis used to detect unreachable part and unused conditions of the code which improves the space complexity and helps in easy clarification of errors. Through this paper, we design an algorithm to prevent the loss of data. The main audience is the white box tester who might leave out essential line of code like, index variables, infinite loop, and inappropriate hashcode in the major source program. This algorithm serves to reduce the damage in case of buffer overflow

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑