Stack protection method and apparatus
A stack protection area and stack technology, applied in the field of communication, can solve problems such as low probability of finding problems, inability to protect the stack when the stack is attacked, and limited range of detection problems, and achieve the effect of preventing device restarts
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0027] Please refer to figure 1 , figure 1 It is one of the flow charts of the steps of the stack protection method provided by the first embodiment of the present invention. The method is applied to network equipment. The specific flow of the stack protection method will be described in detail below.
[0028] Step S140, execute the user thread function corresponding to the thread, and obtain the data information generated during the execution of the user thread function.
[0029] Step S150, dynamically write the data information into the user thread stack area in the stack corresponding to the thread.
[0030] In this embodiment, the stack includes the user thread stack area and a stack protection area for limiting the overflow range of the stack and the damage impact range after the stack is attacked.
[0031] Please refer to figure 2 , figure 2 It is the second flowchart of the steps of the stack protection method provided by the first embodiment of the present inve...
no. 2 example
[0067] Please refer to Figure 7 , Figure 7 A functional block diagram of the stack protection device 200 provided by the second embodiment of the present invention. The device is applied to network equipment. The stack protection device 200 includes: a data processing module 230 .
[0068] The data processing module 230 is configured to execute the user thread function corresponding to the thread, and obtain data information generated during the execution of the user thread function.
[0069] The data processing module 230 is further configured to dynamically write the data information into a user thread stack area in a stack corresponding to a thread, wherein the stack includes a stack protection area and the user thread stack area.
[0070] In this embodiment, the data processing module 230 is used to execute figure 1 In step S140 and step S150, the specific description about the data processing module 230 can refer to figure 1 The description of step S140 and step S1...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


