Method, apparatus, computer device and storage medium for scanning static code
A static code and scanning method technology, applied in the computer field, can solve the problems of no crash scanning, poor accuracy, and high false alarm rate of scanning results, so as to save labor costs, improve reliability, and reduce false alarms.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] figure 1 It is a flow chart of a static code scanning method provided by Embodiment 1 of the present invention. This embodiment is applicable to scanning for potential crashes of static codes of set application programs (such as Android programs or Java programs) during the development process. In some cases, the method can be executed by a static code scanning device, which can be implemented in the form of software and / or hardware, and can generally be integrated into a device with an Android system development function, such as a PC. The method of this embodiment specifically includes the following steps:
[0027] S110. Scan the target static code by using a crash scanning rule corresponding to at least one crash type, wherein the crash scanning rule is determined according to a typical scenario crash code corresponding to the crash type.
[0028] In this embodiment, the crash type may refer to a code type with a potential crash, which may be distinguished from the ...
Embodiment 2
[0043] Figure 2a It is a flow chart of a static code scanning method provided by Embodiment 2 of the present invention. This embodiment is embodied on the basis of the above-mentioned embodiments. By adopting a crash scanning rule corresponding to at least one crash type, the target static code Before scanning, it also includes: collecting crash cases, the crash cases including: crash types, and exception codes corresponding to the crash types; according to the crash cases, counting the exception code sets corresponding to each of the crash types ; Screen out a plurality of abnormal codes that meet the similarity condition in each of the abnormal code sets as the typical scene crash code corresponding to the crash type; determine the crash scanning rule corresponding to the crash type according to the typical scene crash code corresponding to the crash type . Such as Figure 2a As shown, the method specifically includes the following steps:
[0044] S210. Collect crash cas...
Embodiment 3
[0080] image 3 It is a schematic structural diagram of a static code scanning device provided in Embodiment 3 of the present invention, as shown in image 3 As shown, the device specifically includes:
[0081] The target static code scanning module 310 is configured to scan the target static code by using a crash scanning rule corresponding to at least one crash type; wherein, the crash scanning rule is determined according to a typical scene crash code corresponding to the crash type;
[0082] A hidden code writing module 320, configured to write the associated information of the hidden code into the scan report if a hidden code matching the crash scanning rule is scanned in the target static code;
[0083] The scan report output module 330 is configured to output the scan report after the scan is completed.
[0084] The embodiment of the present invention scans the static code according to the targeted crash scanning rules in the development stage, and generates a scannin...
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