Heap data processing method and device

A data processing and metadata technology, applied in the computer field, which can solve problems such as program or operating system damage

Active Publication Date: 2015-04-15
RAISECOM TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The present invention provides a method and device for processing heap data, which is used to overcome the problem in the prior art that attackers use heap overflow to modify heap metadata, thereby causing damage to programs or operating systems

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 data processing method and device
  • Heap data processing method and device
  • Heap data processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The specific implementation manners of the heap data processing method and device of the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0023] The present invention provides a heap data processing method, such as figure 1 shown, including:

[0024] When it is determined that the user needs to allocate memory to write data, select a free heap from the heap area for allocation, and dynamically update the heap metadata corresponding to the allocated heap in the set area; or,

[0025] When it is determined that the user requests to release the allocated heap, release the allocated heap requested by the user, and dynamically update the heap metadata corresponding to the released heap in the set area;

[0026] The heap metadata of all the heaps is stored centrally in a set area in the memory outside the area occupied by all the heaps.

[0027] The heap is the memory area used by the user ...

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 data processing method and a heap data processing device. The heap data processing method comprises the following steps: selecting an idle heap for distribution from a heap zone when confirming that a users demands to distribute memory write-in data, and updating heap metadata corresponding to the distributed heap in a set zone dynamically; or when confirming that the user requests to release the distributed heap, releasing the distributed heap which is requested by the user, and dynamically updating the heap metadata corresponding to the released heap in the set zone, wherein the heap metadata of all heaps are centrally stored in a set zone in the memory except zones occupied by all heaps. With the method disclosed by the invention, the heap metadata of all heaps are stored in a safe memory zone in concentration mode, the heap metadata are separated from heap data in terms of storage mode; and only the heap data can be the modification object of a user but the heap metadata cannot be modified, such that the problem that an attacker modifies the heap metadata through heap overflow can be prevented.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a heap data processing method and device. Background technique [0002] The heap is a computer memory area with continuous addresses. The heap area includes multiple continuous heaps. Heap overflow refers to the data length exceeding the heap that occurs when the amount of data filled by a computer program into a heap exceeds the capacity of the heap itself. storage boundary phenomenon. When a very long data is input into a certain heap, the excess part will be written into other adjacent heaps in the heap area, and other heaps may have stored data, such as storing the pointer of the next instruction executed by the program, or It is the output content of other programs, so all or part of these contents may be overwritten or destroyed. If the overwritten or destroyed content is more important, it will affect the subsequent normal operation. It can be seen that the over...

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): G06F12/02G06F11/00
Inventor 蒙磊
Owner RAISECOM TECH
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