Static analysis-based checking method of safety rules of C language
An inspection method and static analysis technology, applied in computer security devices, instruments, electrical digital data processing, etc., to achieve the effect of making up for the lack of security
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0019] The invention provides a method for checking security rules in C language based on static analysis, comprising the following steps:
[0020] 1) Check the type of C language, avoid the occurrence of forced type conversion, and prohibit the declaration of general pointer type;
[0021] 2) It is stipulated that global variables and local variables cannot have the same name, and the formal parameters of global variables and functions cannot have the same name;
[0022] 3) Limit the loop variable of the control flow statement;
[0023] 4) Strengthen the declaration and definition of C language;
[0024] 5) Analyze the lexical, grammatical, and semantics of the source code to find out where the source code does not meet the above requirements.
[0025] Details are given below.
[0026] The present invention proposes the concept of safe C language guidelines, with the purpose of standardizing C language programming and helping C programmers develop good C language programmi...
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