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

9 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.

Method and device for converting ladder diagram into instruction list, storage medium and electronic equipment

The invention provides a method and device for converting a ladder diagram into an instruction list, a storage medium and electronic equipment. The method comprises the steps that the ladder diagram of a programmable logic controller is converted into a directed graph; the directed graph is converted into an N-way tree structure according to a link structure of the directed graph, the link structure comprises at least one of a serial path, a convergence parallel path and a branch parallel path, the convergence parallel path is a parallel path extending from the same starting node to the same ending node through a plurality of directed edges, and the branch parallel path is a branch path extending from the same ending node through a plurality of directed edges; the bifurcated parallel path is a parallel path extending from the same starting node to different termination nodes through a plurality of directed edges; the N-way tree structure is traversed to generate an instruction table, the instruction table comprising a plurality of output instructions. According to the method, the N-way tree is adopted, the depth of the tree can be effectively reduced, the number of layers of calling stacks during recursive traversal is reduced, the stack overflow risk is reduced, the parallel connection relation is subdivided into convergence parallel connection and branch parallel connection, and the accuracy of logic conversion of the complex ladder diagram is improved.
Owner:GREE ELECTRIC APPLIANCE INC OF ZHUHAI

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

Stack overflow risk detection method and device

The invention provides a stack overflow risk detection method which can be applied to the technical field of artificial intelligence. The method comprises the following steps: determining a stack operation behavior feature sequence for a target stack; the stack operation behavior feature sequence comprises N stack operation behavior features arranged according to a time sequence; n is a positive integer; and predicting the stack overflow risk of the target stack for the determined stack operation behavior feature sequence based on a pre-trained risk prediction model. The invention further provides a stack overflow risk detection device and equipment, a storage medium and a program product.
Owner:INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Embedded system crash diagnosis method and system

PendingCN120704925AFault responseHardware monitoringCrashStack overflow
The invention provides a crash diagnosis method and system for an embedded system, and the method comprises the steps: carrying out the filling of data in a specified format in a stack space of the embedded system in an initialization process, and enabling the data to be filled from a stack starting address; when it is detected that the embedded system crashes, stack top data of a preset length of the stack space is read; and comparing the stack top data with the data in the specified format, and if the stack top data is different from the data in the specified format, judging that the crash reason is stack overflow. Through the scheme of the embodiment of the invention, the data in the specified format can be filled in the stack space of the embedded system, so that after the crash, whether the reason of the crash is stack overflow can be judged only by checking whether the data in the specified format in the stack space is changed or not or whether the variable initial value of the database is changed or not; therefore, the quick judgment of the crash reason is realized, and the problem of low diagnostic efficiency of the crash reason of the current embedded system is solved.
Owner:XIAMEN LEELEN 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