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

Method for detecting uninitialized variables and terminal equipment

A detection method and initialization technology, which is applied to the detection method of uninitialized variables and the field of terminal equipment, can solve problems such as economic loss, unpredictable operation results, and inability to find all software vulnerabilities, and achieve accurate and fast detection results

Active Publication Date: 2022-06-07
KEHUA DATA CO LTD +1
View PDF5 Cites 0 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
  • Method for detecting uninitialized variables and terminal equipment
  • Method for detecting uninitialized variables and terminal equipment
  • Method for detecting uninitialized variables and terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures and technologies are set forth in order to provide a thorough understanding of the embodiments of the present invention. However, it will be apparent to those skilled in the art that the present 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, the following specific embodiments are used for description.

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

[0047] Step 101, reset the system under test, so that t...

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 present invention is applicable to the technical field of embedded software detection, and provides a detection method for uninitialized variables and a terminal device. The method includes: resetting the system under test, making the pointer point to the main function of the system under test; Fill the specified data in the memory segment storing the global variable in the test system; run the pointer to the function position where the variable initialization is completed, read the data of the memory segment, and obtain the total number of memory units corresponding to the name of the global variable and the specified data The total number of units; when the total number of memory units corresponding to the name of the global variable is the same as the total number of units of the specified data, then determine that the global variable is an uninitialized global variable. The method can realize rapid detection of uninitialized global variables in the embedded software through the 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 reference, its initial value is not fixed. When a global variable is referenced, its operation result is unpredictable, and the phenomenon is different each time, which may not only bring economic losses, but also bring difficulties to software developers in locating the problem, resulting in the inability to find all software vulnerabilities and increasing software development. Human time investment in debugging the program. SUMMARY OF THE INVENTION [0003] In view of this, the embodiments of the present invention provide a method for detecting uninitialized variables and a termina...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 张蓬勃胡欣洪开慧
Owner KEHUA DATA CO LTD