Unlock instant, AI-driven research and patent intelligence for your innovation.

A method for detecting uninitialized variables and terminal equipment

A detection method and initialization technology, which are applied to the detection method of uninitialized variables and the field of terminal equipment, can solve the problems of economic loss, unpredictable operation results, and increase the time input of software developers to debug programs, etc., and achieve high speed and detection results. accurate effect

Active Publication Date: 2019-06-18
KEHUA DATA CO LTD +1
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When global variables are referenced, the running results are unpredictable, and the phenomenon is different each time, which not only may cause economic losses, but also makes it difficult for software developers to locate problems, resulting in the inability to find all software vulnerabilities and increasing software development. The time investment of personnel debugging the program

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
  • A method for detecting uninitialized variables and terminal equipment
  • A method for detecting uninitialized variables and terminal equipment
  • A method for detecting uninitialized variables and terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

[0045] In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.

[0046] An embodiment of the present invention provides a method for detecting uninitialized variables, such as figure 1 As shown, the method includes the following steps:

[0047] Step 101, reset the system under test, and make the pointer point to the main function o...

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 invention is applicable to the technical field of embedded software detection, and provides a method for detecting uninitialized variables and terminal equipment, and the method comprises the steps: resetting a tested system, and enabling a pointer to point to a main function of the tested system; Filling specified data in a memory segment for storing a global variable in the tested system; Enabling a pointer to run to a function position where variable initialization is finished, reading the memory segment data, and obtaining the total number of memory units corresponding to the name of the global variable and the total number of units of the specified data; And when the total number of the memory units corresponding to the name of the global variable is the same as the total number of the units of the specified data, determining that the global variable is an uninitialized global variable. According to the method, uninitialized global variables in the embedded software can be rapidly detected through a script automatic detection method.

Description

technical field [0001] The invention belongs to the technical field of embedded unit testing, and in particular relates to a detection method for uninitialized variables and a terminal device. Background technique [0002] The referenced global variables need to be declared and initialized before the embedded software system runs. If the global variable is not initialized before the variable is referenced, its initial value is not fixed. When global variables are referenced, the running results are unpredictable, and the phenomenon is different each time, which not only may cause economic losses, but also makes it difficult for software developers to locate problems, resulting in the inability to find all software vulnerabilities and increasing software development. The time investment of personnel debugging the program. Contents of the invention [0003] In view of this, an embodiment of the present invention provides a method for detecting uninitialized variables and a...

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/36
Inventor 张蓬勃胡欣洪开慧
Owner KEHUA DATA CO LTD