A Detecting Method of Array Bounds Defects Based on Symbolic Execution.

Chun Shan,Shiyou Sun,Jingfeng Xue,Changzhen Hu,Hongjin Zhu
DOI: https://doi.org/10.1007/978-3-319-64701-2_27
2017-01-01
Abstract:Array bounds is the most commonly fault in java programs design, it often leads to wrong results even system crash. To solve these problems, this paper proposed a detecting array bounds method based on symbolic execution. The method generated the abstract syntax tree from the source code, and then created a control flow graph according to the abstract syntax tree. It adopted flaw detectors to detect defects of array bound. Finally, using the standard function to test the ability of this method in detecting array bounds. The results indicated that this method can detect array bounds defects of crossing process indirectly, array bounds defects within process and array bounds defects of crossing process directly very well and it is better than some existing Java methods of detecting array bounds defects.
What problem does this paper attempt to address?