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

Pending Publication Date: 2020-12-18
GUANGZHOU HUYA TECH CO LTD
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of realizing the present invention, the inventor found that the existing compilation tools cannot effectively detect the abnormal problems such as the application program cannot find classes, functions or variables, which increases the abnormal probability of the application program after it goes online, and further increases the Exception fix cost for application

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Static detection method, device, and equipment for application program codes, and medium
  • Static detection method, device, and equipment for application program codes, and medium
  • Static detection method, device, and equipment for application program codes, and medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a static detection method, device and equipment for application program codes and a storage medium. The method comprises the steps of obtaining a target application program; performing de-compilation processing on the target application program to obtain a de-compilation source code file; and in the de-compiled source code file, carrying out exception detection on the referenced object. According to the technical scheme provided by the embodiment of the invention, the loophole that an existing compiling tool cannot perform static detection on the object cited in the application library file is made up, more problems can be detected in the static detection process of the application program code, and the abnormal probability of the application program after online operation is reduced; and the exception repair cost of the application program is greatly reduced.

Description

technical field [0001] Embodiments of the present invention relate to the field of computer technology, and in particular, to a static detection method, device, device and storage medium for application program codes. Background technique [0002] With the continuous development of the mobile Internet, various mobile phone applications have emerged on the market to meet various service needs in people's daily life. Under normal circumstances, after the developer completes the application source code, compiles the application source code to obtain the application installation package and puts it online in the application store, ordinary users can realize the use of the application by downloading and installing the application installation package. . [0003] In the prior art, during the compiling process of the application source code, the compilation tool will perform static code detection on the application source code to identify some common errors in the application sour...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/36G06F8/53
CPCG06F11/3604G06F8/53
Inventor 陈文俊
Owner GUANGZHOU HUYA TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products