GCC abstract syntax tree-based buffer overflow vulnerability detection method
An abstract syntax tree and buffer overflow technology, applied in the field of information security, can solve the problems of inaccurate positioning, high false negative rate, low detection efficiency, etc., and achieve the effect of eliminating redundant information, accurate representation, and accurate judgment results.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment Construction
[0047] The technical solution of the present invention will be described in detail below in conjunction with specific embodiments.
[0048] This embodiment uses the method of the present invention to test a 7-line C language source program, and the source program code is as follows:
[0049] #include
[0050] #include
[0051] int main()
[0052] {char test[2];
[0053] strcpy(test, "aaaaa");
[0054] return 0;
[0055] }
[0056] The operation process is as follows:
[0057] Step 1. For the source program to be analyzed, directly use the GCC compiler to generate an abstract syntax tree AST, which contains 2280 nodes.
[0058] Step 2: On the basis of Step 1, eliminate redundant information in the abstract syntax tree AST. Specifically:
[0059] Step 1: Traverse all the nodes in the abstract syntax tree AST, and divide all nodes into 3 types according to the "srcp" field in the nodes of the abstract syntax tree AST:
[0060] a. If the value of the "srcp" field is the name of the source file...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com