Method for analyzing memory security in C code by using data stream analysis algorithm
A technology of data flow analysis and algorithm analysis, which is applied in the field of data flow analysis algorithm and static analysis tool development, can solve memory safety problems and other problems, and achieve the effect of easy detection and memory safety
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment
[0032] A method for analyzing memory safety in C code by using a data flow analysis algorithm, defining C language memory instructions as a formalized instruction set, and then performing the following operations,
[0033] Statically analyze the position where the code needs to be marked and add a mark to the corresponding pointer, and automatically add a mark to the code; the pointer includes two types of ownership and non-ownership.
[0034] Convert the C code into an abstract syntax tree (AST), check the type of each instruction in the abstract syntax tree, and make different modifications to the pointer authority transfer / borrowing statements involved in the abstract syntax tree, so that it can be used in static single assignment (SSA) is distinguished. This step is called annotation.
[0035] Linearize the abstract syntax tree to obtain the control flow graph in the form of static single assignment, analyze the data flow, and obtain the result of the convergent permissio...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com