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

Heap memory error-oriented detection method and device

A memory error and memory technology, applied in the field of detection methods and devices for heap memory errors, can solve problems such as wasting system resources, doubling the number of operations, increasing system overhead burden, etc., to minimize system performance overhead and increase program coverage , the effect of reducing system performance overhead

Pending Publication Date: 2022-02-18
INST OF INFORMATION ENG CAS
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This simple combination will not only produce some false negatives due to the use of non-uniform memory models in dynamic symbolic execution and heap-based memory vulnerability detection, but also from the perspective of system performance overhead, this simple combination makes every The path execution times of a program doubles, which leads to a waste of a lot of system resources and increases the burden of system overhead.

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
  • Heap memory error-oriented detection method and device
  • Heap memory error-oriented detection method and device
  • Heap memory error-oriented detection method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0052] In order to make this combination effective and feasible in actual engineering, we need to build an accurate memory model for heap memory vulnerability detection, and add a corresponding detection engine so that it can be real-time and solve during dynamic program analysis. device to interact. We need to address the following challenges:

[0053] 1. The memory model is a very important part of dynamic program analysis. An accurate memory model can not...

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 discloses a heap memory error-oriented detection method and device, and the method comprises the steps: selecting an input parameter, and carrying out the concolic execution of a tested program; when each execution tracking path in the concolic execution is tracked, generating a corresponding branch constraint for each branch, performing vulnerability detection on each code block related to the heap operation, and generating a vulnerability constraint for the code block with the vulnerability related to the heap; based on the branch constraint and the vulnerability constraint corresponding to each execution tracking path, generating a test case of the execution tracking path; and respectively inputting each test case into the tested program to obtain a verified tested program heap memory error. According to the method, the to-be-analyzed target point can be found as soon as possible while the program coverage rate can be effectively increased, the system performance overhead is minimized on the premise of keeping high consistency with the real running environment of the program, and different types of heap memory errors can be detected.

Description

technical field [0001] The invention relates to software safety testing, in particular to a detection method and device for heap memory errors. Background technique [0002] A memory error is a behavior that occurs when the program is running, when the rewritten content in the memory exceeds the original intention of the programmer (https: / / en.wikipedia.org / wiki / Memory_corruption). Modern programming languages ​​such as C and C++ have powerful memory management and pointer arithmetic features, which also bring hidden dangers of memory safety (L.Szekeres, M.Payer, T.Wei and D.Song, " SoK: Eternal War in Memory," 2013 IEEE Symposium on Security and Privacy, 2013, pp.48-62, doi:10.1109 / SP.2013.13). [0003] Vulnerabilities caused by memory errors are mainly divided into stack-based memory vulnerabilities and heap-based memory vulnerabilities. They can cause very serious dangers such as: system crashes, denial of service, arbitrary code execution and data leakage, etc. Among ...

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): G06F21/57G06F21/55G06F21/52
CPCG06F21/577G06F21/556G06F21/52G06F2221/033
Inventor 王文智范萌于爱民孟丹
Owner INST OF INFORMATION ENG CAS
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