A Fault Detection Method for Integer Overflow Based on Metamorphic Relations
A technology of integer overflow and transformation relationship, applied in the field of software testing, can solve the problems of restricting the application field of dynamic testing and difficult test case execution results, and achieve the effect of low false positive rate, low false negative rate and accurate detection.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment approach
[0037] A kind of integer overflow fault detection method based on metamorphosis relation of the present invention, comprises the following steps:
[0038] The first step is to conduct a static test on the source code of the program under test, and identify the integers that may cause integer overflow as integer overflow checkpoints. Static detection is performed on the source code of the program under test by using the existing static testing tool in the prior art, and the source code statement of the program source code referring to an integer that may cause integer overflow in the source code of the program under test is marked as an integer overflow checkpoint. . For the detection and calibration of statements that refer to integers in the source code of the program under test, the existing static test method is used to detect whether there are statements that may cause integer overflow in the source code of the program under test using existing static test tools , and ide...
Embodiment
[0066] Such as figure 1 As shown, the flow chart of the integer overflow fault detection method based on metamorphosis test is given. In order to describe the implementation process of the present invention in detail and clearly, this example takes a section of code in the program OpenSSH3.3 as an example as the program under test for related description. The program under test is a free and open-source implementation of the SSH protocol, which can be used to remotely control or transfer files between computers. If an integer overflow fault occurs in the program under test, it is very likely to lead to unsafe access. Dynamically detects whether it will fail on integer overflow.
[0067] The source code segment of the program under test in this example is as follows:
[0068]
[0069] Next, the method of the present invention will be described step by step for the detection of whether the integer in the above-mentioned source code segment of the program under test will ov...
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