Abstract

For software source code defect detection, in order to achieve higher generalization ability and higher detection accuracy, this paper proposes a defect detection method based on graph structure and deep neural network. Use the code representation methods of abstract syntax tree, program dependency graph and code property graph to generate the dependency relationship of code data, extract the defect candidate key nodes of source code, and slice the program. Word2vec and one hot coding methods combined with attention mechanism are used to extract the semantic feature information and sentence type information of the program statements. In the deep neural network part, the BiGRU network model with attention mechanism is selected for deep learning to extract context information, forward and backward sequence information. Compared with the existing defect detection tools by data on SARD and CVE dataset, the generalization ability and detection effect are significantly improved. When applied to software testing, this method can achieve more efficient testing capability.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.