Method, device and system for determining function call relationship
A function call relationship and function technology, applied in the computer field, can solve the problem of low accuracy of the return address and achieve the effect of improving accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] Such as figure 1 As shown, the embodiment of the present invention provides a method for determining a function call relationship, including:
[0040] 11. Search for instructions from the instruction address of the current code segment of the function to a higher address direction, and obtain the first SP (Stack Pointer, stack pointer) offset value of the function.
[0041] 12. Search for instructions from the instruction address of the code segment to the lower address direction, obtain the second SP offset value of the function, and obtain the offset value of the address storing the return address of the function relative to the stack frame of the function.
[0042] 13. Obtain the SP offset value of the function according to the first SP offset value and the second SP offset value, and when the SP offset value meets the preset requirements, the stack pointer of the function points to the For the stack frame of the function, the return address of the function is obtai...
Embodiment 2
[0126] Such as Figure 7 As shown, the embodiment of the present invention provides an apparatus for determining a function call relationship, including:
[0127] A forward search unit 71, configured to search for instructions from the current code segment instruction address of the function to the high address direction to obtain the first SP offset value of the function;
[0128] The backward search unit 72 is configured to search instructions from the instruction address of the code segment to the lower address direction, obtain the second SP offset value of the function, and obtain the stack frame of the address relative to the function that stores the return address of the function offset value;
[0129] A determining unit 73, configured to obtain the SP offset value of the function according to the first SP offset value and the second SP offset value, and when the SP offset value meets the preset requirements, the stack of the function The pointer points to the stack f...
Embodiment 3
[0160] Such as Figure 12 As shown, the embodiment of the present invention provides a system for determining a function call relationship, including the device 1 for determining a function call relationship provided in the above-mentioned embodiment and the user interface 2 .
[0161] The device for determining the function call relationship is used to receive the user's function call command through the user interface, and trace out the return address and SP value of the function by analyzing the process user state code segment instructions mapped to the memory.
[0162] The device for determining the function call relationship in the embodiment of the present invention and the functions of its constituent parts can be understood based on the above-mentioned device for determining the function call relationship in the embodiment of the present invention, and repeated descriptions are not repeated here.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com