Static detection method, device, and equipment for application program codes, and medium
An application and static detection technology, applied in the computer field, can solve the problems of increasing the abnormal probability of the application, unable to find the class, function or variable of the application, and unable to effectively detect it, so as to reduce the abnormal probability and reduce the abnormal repair cost. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] figure 1 It is a flow chart of a method for static detection of application code in Embodiment 1 of the present invention. This embodiment is applicable to the case of performing static code detection on application library files that have object references in the application. This method can be implemented by the application The static detection device of the program code can be implemented by means of software and / or hardware, and can generally be integrated in a terminal device or a server. Such as figure 1 As shown, the method includes:
[0032] S110. Obtain a target application program, where the target application program is jointly compiled from an application program source code file and an application library file, and at least one application library file has an object reference.
[0033] In this embodiment, the target application program specifically refers to an executable file obtained by compiling the application program source code file and one or more ...
Embodiment 2
[0057] figure 2 It is a flowchart of a static detection method for application code in Embodiment 2 of the present invention. This embodiment is further refined on the basis of the above embodiments. In this embodiment, the decompiled source code file will be Search for the object definition information corresponding to each of the referenced objects, specifically: if the currently searched target referenced object is a function or variable, then identify in the decompiled source code file the Target class, and all levels of parent classes of the target class; if it is determined that the class definition information of the target class and each of the parent classes does not contain the object definition information of the target referenced object, then determine the target No object definition information exists for the referenced object.
[0058] Correspondingly, the method of this embodiment may include:
[0059] S210. Obtain a target application program.
[0060] Wher...
Embodiment 3
[0099] image 3 It is a schematic structural diagram of a static detection device for application program codes in Embodiment 3 of the present invention. Such as image 3 As shown, the static detection device of the application code includes: a target application acquisition module 310, a decompiled source code file acquisition module 320 and a static detection module 330, wherein:
[0100] A target application acquisition module 310, configured to acquire a target application, the target application is obtained by compiling the application source code file and the application library file, and at least one application library file has an object reference;
[0101] A decompiled source code file acquisition module 320, configured to decompile the target application program and obtain a decompiled source code file;
[0102] The static detection module 330 is configured to perform abnormal detection of referenced objects in the decompiled source code file.
[0103] In the tech...
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