Research on Code Slicing Based on Sensitive Semantic Association and Its Application
By utilizing the scalability of the program to slice the code of the program,key statements affected by sensitive variables can be identified,noise can be eliminated,and the internal dependencies of the program can be mined,so as to detect vulnerabilities and defects in the code.In order to solve the problem of the excessive sensitiv-ity of slicing to dependencies,this paper proposes an inter-procedural slicing method of the code based on sensitive semantic association,which extracts effective statements that represent sensitive information,,captures semantic de-pendent association,transforms the trigger points of code vulnerabilities into context-sensitive defect dependency flows,improves slicing efficiency based on constraint rules,and obtains the abnormal source of code vulnerabilities in combination with defect constraints.Experimental results show that this method performs well in the efficiency and quality of code slicing and the accuracy of vulnerability detection.