Automatic restoration method for null pointer reference of program dependency graph guided restoration template
A program dependency graph and null pointer technology, applied in the field of candidate patches, which can solve problems such as inaccurate repair locations, large patch search range, and incorrect repair patches.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0020] The null pointer reference of the present invention will be further described in detail below in conjunction with examples of the present invention.
[0021] For example, the following code segment:
[0022]
[0023] (a)
[0024]
[0025] (b)
[0026] In the program fragment in (a), a null pointer fault occurs in the method call to the null object parser at line L5. At this time, it is difficult to obtain the correct patch by using the assignment mechanism. In this case, it is necessary to avoid triggering of the null object as much as possible. Through the program dependency analysis, it can be found that the fault statement node is L5, {L6, L7, L9} depends on L5 through the directed edge set data, and the directed edge set shows that both L7 and L9 are controlled by the statement node of L5 , so the defect impact domain of the fault variable parser is {L5, L6, L7, L9}. A constraint mechanism is used to perform a null check on the defect-infected field, and if...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com