Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for detecting stack overflow position

A detection method and stack overflow technology, applied in software testing/debugging, platform integrity maintenance, etc.

Active Publication Date: 2015-06-17
XIAOMI INC
View PDF5 Cites 13 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The stack overflow problem is very common in program development. However, programmers have never had a good solution to this problem, especially in the most popular field of arm architecture programming.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for detecting stack overflow position
  • Method and device for detecting stack overflow position
  • Method and device for detecting stack overflow position

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0046] Before describing the technical solutions provided by the embodiments of the present disclosure, firstly, the principle on which the technical solutions of the embodiments of the present disclosure are based is explained. The embodiment of the present disclosure is based on the principle of an arm compiler, and is an effective stack overflow position detection technology.

[00...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method and device for detecting the stack overflow position. The method and device are used for rapidly and conveniently detecting the stack overflow position. The method comprises the steps that before a function to be detected is executed, the initial value of a randomly initialized figure in a program is determined, wherein the randomly initialized figure is located at the bite alignment address which is closest to and in front of the last element of an array buffering area of the program; the function to be detected is executed, and after the function to be detected is executed, the current value of the randomly initialized figure is obtained; whether the current value and the initial value are equal or not is judged; if the current value is equal to the initial value, it is determined that stack overflow does not happen to the function to be detected; if the current value is not equal to the initial value, it is determined that stack overflow happens to the function to be detected. By the adoption of the method, the stack overflow position can be rapidly and conveniently detected out.

Description

technical field [0001] The present disclosure relates to the technical field of terminal equipment development, and in particular to a method and a device for detecting a stack overflow location. Background technique [0002] With the popularity of smart phones, there has been an upsurge in mobile development in recent years, especially the open source of the android system, which has made the cost of developing mobile phone systems for various manufacturers very low, and has also attracted more and more developers. Entering this embedded field development platform, the embedded field is mainly based on the embedded development of arm architecture. arm programming and debugging technology has increasingly become the core competitiveness of today's mobile development field. Developing and debugging programs quickly is a skill that every mobile developer desperately wants to master. [0003] The stack overflow problem is very common in program development. However, programme...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36G06F21/52
Inventor 李明浩甘晓霖王舒捷
Owner XIAOMI INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products