11-07-2023 дата публикации
Номер: CN116414399A
Принадлежит:
The invention relates to an embedded Lua code static analysis method and system, computer equipment and a storage medium, and the method comprises the following steps: obtaining a source code which is a conf file of Nginx; the conf file is analyzed, and a Lua code embedded in the conf file is obtained; static analysis is carried out on the Lua code in the service scene, an analysis report is generated, and static analysis comprises lexical and grammatical analysis, semantic analysis and logic analysis. According to the method, Lua code logic analysis in a specific business scene is executed in a customized mode, under the condition that codes are not directly operated, lexical analysis, grammar analysis, semantic analysis and logic analysis are carried out on code texts, and therefore indexes such as normalization, safety, reliability and maintainability of the codes are verified, and the method is suitable for popularization and application. According to the method, various problems in ...
Подробнее