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

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

Software crash error repair scheme recommendation method based on position and knowledge similarity

The invention discloses a position and knowledge similarity-based software crash error repair scheme recommendation method, which outputs a repair method for error codes according to generated crash stack tracking information and corresponding codes when software crashes, and can help developers to quickly and efficiently solve the problem of software crash. When the method works, firstly, a context knowledge base is constructed, problem posts containing crash stacks on Stack Overflow are preprocessed, a knowledge base and an abnormal dictionary are constructed, and a language model is trained; thirdly, a related question set is preliminarily obtained through stack tracking, the comprehensive similarity of the question and an input stack is calculated through the position related similarity and the additional knowledge similarity, and the most related question and answer set is returned; and finally, performing relevancy calculation on the answer paragraphs based on multiple features, selecting paragraphs related to the crash reason by applying an MMR algorithm, and outputting root cause analysis and repair code snippets related to the crash error.
Owner:ZHEJIANG UNIV CITY COLLEGE

Method, device and equipment for task stack memory management and storage medium

The invention relates to the technical field of embedded operating systems, and discloses a task stack memory management method, device and equipment and a storage medium, the method comprises the following steps: under the condition of initializing task stacks, obtaining the initial byte number of each task stack and the initial address of each task stack, and setting the initial value in each task stack as a preset value; before switching to the target task stack, obtaining the number of continuous bytes with the numerical value being a preset value in the target task stack, and determining the in-stack space usage amount of the target task stack based on the ratio of the number of continuous bytes to the number of initial bytes of the target task stack; and performing task scheduling based on a task stack usage amount preset threshold value and the in-stack space usage amount of the target task stack. By means of the method, the task stack memory usage amount can be accurately obtained, the RTOS memory usage condition can be known, the task stack memory is reasonably planned, task scheduling is conducted, RTOS performance is optimized, task stack overflow is prevented, and the stability and reliability of an RTOS system are improved.
Owner:镁佳(北京)科技有限公司

Stack detection method, stack detection system and electronic equipment

The invention provides a stack detection method, a stack detection system and electronic equipment, and the method comprises the steps: traversing a task control block corresponding to each task if a task switching instruction is received, so as to obtain a stack top pointer and a stack bottom pointer corresponding to each task; determining a stack bottom check value corresponding to each stack bottom pointer and a stack top check value corresponding to each stack top pointer; comparing each stack bottom verification value and each stack top verification value with a preset value to obtain a comparison result; and determining the stack overflow condition of the current stack corresponding to the current task according to the comparison result. In the mode, not only can the stack state of the current task be detected, but also the stack states of other tasks can be detected, so that the stack border crossing problem can be found and positioned in time when the tasks are switched, and the stability of the system and the accuracy of error positioning are remarkably improved.
Owner:HANGZHOU JIEFENG TECH CO LTD

A hybrid-mode-based adaptive construction and intelligent question-answering method for API knowledge graph

The present invention discloses a hybrid mode API knowledge graph adaptive construction and intelligent question-answering method. The content of the method includes: based on Stack Overflow platform question discussion, Github open source project, network software library API description document, local project collection API information and knowledge extraction to build API knowledge graph; adaptive training hybrid mode API knowledge graph query model; query user uses hybrid mode knowledge graph query to query API information through natural language description; build a structure partitioned visual API information display page. The present invention solves the problems of low accuracy, slow speed, low content richness and unintuitive presentation when using natural language description query in traditional API query. The hybrid mode knowledge graph API query method provides query users with more accurate, richer content and more intuitive API information, thereby improving the development efficiency of programmers.
Owner:BEIJING UNIV OF TECH

Stack detection system, stack detection method and stack detection device

The invention provides a stack detection system, a stack detection method and a stack detection device.The stack detection system comprises a terminal device, the stack detection device and a to-be-detected MCU chip, the stack detection device receives a stack maximum available space value sent by the terminal device and further obtains a current stack pointer value of software in a to-be-detected MCU chip program in real time; when the current stack pointer value is not larger than the maximum stack pointer value stored at the last moment, the actual use percentage of the current stack is displayed, and when the current stack pointer value is larger than the maximum stack pointer value stored at the last moment, the current stack pointer value serves as a new maximum stack pointer value to be stored and displayed; and the stack detection device is also used for comparing the maximum stack pointer value with the maximum available space value of the stack, and displaying an alarm when the maximum stack pointer value is greater than the maximum available space value of the stack. According to the system, the stack overflow problem is detected in real time, and the use condition of the stack is fed back, so that the debugging efficiency and the program stability are improved.
Owner:MINDMOTION MICROELECTRONICS CO LTD

A debugging and analysis method for stack overflow vulnerabilities in MIPS instruction set programs

The present application discloses a debugging and analysis method for a stack overflow vulnerability of a MIPS instruction set program, including: using an IDA plug-in to load a MIPS instruction set program, and setting a memory space segment for the IDA plug-in; determining the target assembly code to be detected from the MIPS instruction set program, and setting the target assembly code in the memory space segment; initializing and assigning values ​​to registers to implement debugging and analysis of the target assembly code, and determining the offset padding of the MIPS instruction set program. The present method is not limited by a third-party library environment or an operating system, that is, the present method can debug and analyze programs that lack a third-party library environment or programs of bare metal firmware without an operating system, and can improve the convenience of determining the offset padding of a MIPS instruction set program. The present application also discloses a debugging and analysis device, equipment, and storage medium for a stack overflow vulnerability of a MIPS instruction set program, all of which have the above-mentioned beneficial effects.
Owner:HANGZHOU DBAPPSECURITY CO LTD

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

Exploitation Analysis Method and Device for Heap / Stack Overflow Errors

The present invention discloses a method and device for analyzing the exploitability of heap / stack overflow errors, which relates to the field of network security technology and can analyze the exploitability of heap / stack overflow errors in a timely and effective manner. The method of the present invention mainly includes: during the process of running a target program on a monitoring platform, monitoring and recording heap / stack memory information; when a write instruction to be written to the heap / stack is monitored, judging whether there is a heap / stack overflow error in the target program according to the target address accessed by the write instruction and the current heap / stack memory information; if there is a heap / stack overflow error, performing taint propagation with the data to be overflowed as a taint source, and judging whether there is an instruction for judging the exploitability of the program being executed; if there is an instruction for judging the exploitability of the program being executed, determining that the heap / stack overflow error corresponding to the data to be overflowed is exploitable. The present invention is mainly applicable to the scenario of analyzing heap / stack overflow errors.
Owner:BEIJING QIHOOD TECHNOLOGY CO LTD

Methods, devices, terminals, and storage media for identifying stack overflows

The present application belongs to the field of communication technology, and specifically, relates to a stack overflow identification method, device, terminal and storage medium. Among them, a stack overflow identification method includes: when determining that a segment error occurs in the system memory, obtaining the memory address corresponding to the error reserved memory in the system memory and the stack memory corresponding to the error reserved memory, wherein the process corresponding to the stack memory is the first process; obtaining the stack top address corresponding to the stack memory; when the memory address does not match the stack top address, determining that a stack overflow occurs in the stack corresponding to the stack memory. Therefore, there is no need to receive the user's stack overflow identification instruction, nor is there a need to perform a stack overflow identification operation after each stack push operation, which can reduce the stack overflow identification operation and thus improve the stack overflow identification efficiency.
Owner:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD

Abnormality processing method and device, electronic equipment and readable medium

The embodiment of the invention provides an exception handling method and device, electronic equipment and a readable medium, and relates to the technical field of computers.The method comprises the steps that a target code in the electronic equipment is run; the electronic equipment comprises a stack space allocated for the target code and an overflow protection space, and the overflow protection space is located outside the stack space. And under the condition that the access address of the target code falls into the overflow protection space, running a preset exception handling code. And through the exception handling code, determining a function related to the access address in the target code as an exception function, and outputting exception information of the exception function. Therefore, the exception detection process is automatically triggered under the condition that the access address of the target code falls into the overflow protection space, namely stack overflow occurs, so that the electronic equipment automatically determines the exception function based on the preset exception handling code and outputs the exception information, and thus, exception positioning can be quickly realized.
Owner:LOONGSON TECH CORP

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

Method for protecting application stacks

Disclosed herein is a method for protecting application stacks. In particular, the method includes: designating, by an operating system (OS) module, an additional stack dummy to an application stack in connection with a micro control unit (MCU); generating, by the MCU, an interrupt by recognizing, through the stack dummy, whether the application stack overflows; and performing, by the OS module, a measure of protection for the overflowed application stack according to whether the interrupt is generated.
Owner:HYUNDAI AUTOEVER

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