Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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.

Inactive Publication Date: 2019-01-04
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF3 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the process of realizing the present invention, the inventor found that the prior art has the following defects: in the existing static code-based scanning tools, there is no tool for clearly scanning the hidden dangers of crashes, or even if several types of crashes can be scanned ( crash) hidden dangers, but the scan results have a high false positive rate and poor accuracy

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
  • Method, apparatus, computer device and storage medium for scanning static code
  • Method, apparatus, computer device and storage medium for scanning static code
  • Method, apparatus, computer device and storage medium for scanning static code

Examples

Experimental program
Comparison scheme
Effect test

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

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 scanning method, an apparatus, a computer device and a storage medium of a static code. The method comprises the following steps of: scanning a target static code by adopting 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; if the hidden trouble code matched with the crash scanning rule is scanned in the object static code, the associated information of the hidden trouble code is written into the scanning report; at the end of the scan, the scan report is output. The embodiment of the invention can accurately check the crash problem and improve the reliability of the crash scanning tool.

Description

technical field [0001] The embodiments of the present invention relate to the field of computers, and in particular to a static code scanning method, device, computer equipment and storage medium. Background technique [0002] With the continuous development of computer technology, smart devices emerge in an endless stream, especially smart phones. Users realize various functions of smartphones by using application programs developed by technicians for different types of operating systems. [0003] At present, most of the more commonly used smartphones use the Android system. In order to better meet the needs of users, technicians need to continuously develop and maintain the Android system, and during the online operation of the Android system, address various issues that appear. A kind of operation error, make timely and effective correction. [0004] Among them, the crash (crash) problem is a very important operating error in the Android system. Crash refers to the occu...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06F11/07
CPCG06F11/0766G06F11/079G06F11/3628G06F11/366
Inventor 陈夏辉袁辉吴彬杰
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products