Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

6 results about "Stack overflow" patented technology

In software, a stack overflow occurs if the call stack pointer exceeds the stack bound. The call stack may consist of a limited amount of address space, often determined at the start of the program. The size of the call stack depends on many factors, including the programming language, machine architecture, multi-threading, and amount of available memory. When a program attempts to use more space than is available on the call stack (that is, when it attempts to access memory beyond the call stack's bounds, which is essentially a buffer overflow), the stack is said to overflow, typically resulting in a program crash.

Stack overflow elimination method based on task stack intelligent computing on a spaceborne computer

The application discloses a stack overflow elimination method based on intelligent calculation of a task stack on a spaceborne computer, and is used for solving the program safety problem caused by stack overflow of a spaceborne electronic system, and also improves the utilization rate of spaceborne storage resources because the stack memory can be accurately allocated.The application is based on the instructions of using stack space such as function calling and stack pressing of a Cortex-M7 core and the specific process of function calling in the Cortex-M7 core, and uses a cross-compiler tool chain to disassemble an ELF file to generate a text file, uses C language on a clion platform to track the instruction flow in the disassembled text, analyzes the positioning points of function calling relations, analyzes the required task stack size of each level function by using the recursive thought, and thus the required function stack space of a specified task function is obtained.The application can effectively give all function calling relations of a specified function and the corresponding actually occupied stack space size, is an effective and convenient memory resource optimization auxiliary tool, and will produce good effects in practical application.
Owner:NANJING UNIV OF SCI & TECH

Method for detecting stack overflow of kernel of operating system

The invention relates to the technical field of system security and reliability, in particular to a method for detecting stack overflow of an operating system kernel, which comprises the following steps of: distributing S-sized physical memory for a kernel task; a 2S continuous area is distributed in the virtual address space, the high S is a stack effective area and maps a physical memory, and the low S is an unmapped stack protection area; initializing a stack top pointer to an effective area high address; when stack overflow accesses the protection area, page missing abnormity is triggered, and overflow is judged by judging whether a fault address falls into the protection area or not. According to the method, the read / write stack overflow can be detected in real time before the memory is damaged with zero physical memory overhead, and the system reliability is improved.
Owner:HUNAN ZETIAN ZHIHANG ELECTRONIC TECH CO LTD

Method for protecting an application stack

Disclosed herein is a method for protecting an application stack, the method including: designating, by an operating system (OS) module, an additional stack virtual to an application stack connected with a micro control unit (MCU); generating, by the MCU, an interrupt by identifying whether the application stack overflows via the stack virtual; and performing, by the OS module, a protection measure for the overflowing application stack according to whether the interrupt is generated.
Owner:HYUNDAI AUTOEVER

A processor debugging method and device, computer equipment and processor

ActiveCN116909819BImprove debugging efficiencyPinpoint overflow issuesComputer architectureEngineering
The application provides a processor debugging method and device, computer equipment and a processor. The method comprises the following steps: setting a digital stack monitoring module of a target stack of a processor; monitoring a monitoring address in the target stack based on the digital stack monitoring module; and determining that an overflow exception occurs in the target stack if data of the monitoring address changes. The method provided by the application can accurately locate a stack overflow problem and improve the efficiency of processor debugging.
Owner:GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1

Stack overflow detection method, electronic equipment, readable storage medium and program product

PendingCN121579320AError detection/correctionTarget controlStack overflow
The invention relates to a stack overflow detection method, electronic equipment, a readable storage medium and a program product. The method comprises the following steps: in response to a read to-be-executed instruction, determining an access address of the to-be-executed instruction based on a decoder, the to-be-executed instruction being used for accessing a memory by using a stack pointer; obtaining a value of a target control state register, wherein the target control state register is configured to store a stack bottom address of a target stack of the to-be-executed instruction; determining a comparison result of the access address and the value of the target control state register based on a comparator; and when the comparison result is that the access address is smaller than the value of the target control state register, determining that the stack overflow detection result is that stack overflow exists. By adopting the method, stack overflow detection with high efficiency, high safety and reduced resource waste can be realized.
Owner:CCORE TECH CO LTD

A method for mining and exploiting stack overflow vulnerabilities of internet of things devices based on reverse analysis

The application provides a method for mining and utilizing a stack overflow vulnerability of an Internet of Things device based on reverse analysis, which comprises the following steps: obtaining a Web service backend code and a code structure of the Internet of Things device; performing reverse analysis on a dangerous function; analyzing a relationship chain composed of a function call chain and a variable transmission chain as a basic unit, so as to locate a vulnerability point and determine a stack overflow vulnerability; and constructing a malicious POST to utilize the vulnerability. The application has strong pertinence, can effectively reduce a vulnerability detection range, reduce a human cost consumed in detection, and improve a vulnerability detection rate. The application is not limited by an automatic degree of a detection device, can effectively detect a stack overflow vulnerability in the Internet of Things device, and thus helps to improve the security of the Internet of Things device.
Owner:NORTHWESTERN POLYTECHNICAL UNIV