Method and device for protecting stack
A stack and max-heap technology, applied in the direction of instrumentation, error detection/correction, calculation, etc., can solve the problems of stack memory usage, detection lag, etc., and achieve the effect of solving detection lag and convenient and fast detection
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0031] Functional overview of the technical solution of this embodiment: in related technologies, when the function call is too deep or the local variable is too large, etc., the allocated stack will be overflowed and an exception will be generated. (Executable and Linking Format, referred to as ELF) to obtain the corresponding assembly source code, scan the assembly source code to analyze and calculate the maximum stack occupancy of each function; in addition, scan the ELF file symbol table to obtain each own scheduling entity when designing the own scheduling entity The stack configuration value of the entity, calculate the stack occupancy value of the maximum depth of the self-scheduling entity according to the call path starting from the entry. Then compare the stack configuration value of each self-owned scheduling entity with the corresponding maximum stack occupancy calculation value. If the configuration value is less than the count value, there is an overflow risk, and...
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