The Design and Implementation of Preprocessor of C/C++ Program Safety Checker
|School||Xi'an University of Electronic Science and Technology|
|Course||Computer Software and Theory|
|Keywords||Security check Preprocessor ANTLR|
In this paper, based on analysis of the safety inspection tool framework of C / C program , according to the special needs of the security check tool is given a pre- processor the analyzer automatically generated tool the ANTLR structure C / C safety inspection tool , and this method is applied to the actual development process . Preprocessor use this method constructed by analyzing C / C source code for the backend security checks completed pretreated intermediate files and security checks required special information , and the completion of the pre-processing stage security vulnerability checks . This article uses ANTLR generated lexer , parser framework , focused on the C / C pretreatment standards and its safety , Design and Implementation of the preprocessor , and pretreatment security check module design and realization . The practice shows that the pre- processor to meet the needs of the security check tool .