Invention Grant
- Patent Title: Runtime detection of uninitialized variable across functions
-
Application No.: US15161526Application Date: 2016-05-23
-
Publication No.: US09886368B2Publication Date: 2018-02-06
- Inventor: Xiao Feng Guan , JiuFu Guo , Yu Xuan Zhang , Yuheng Zhang
- Applicant: INTERNATIONAL BUSINESS MACHINES CORPORATION
- Applicant Address: US NY Armonk
- Assignee: International Business Machines Corporation
- Current Assignee: International Business Machines Corporation
- Current Assignee Address: US NY Armonk
- Agent L. Jeffrey Kelly
- Main IPC: G06F11/36
- IPC: G06F11/36 ; G06F9/44

Abstract:
The disclosure provides a method for detection of an uninitialized variable. The method includes running a first function, wherein the first function comprises a local variable and a first flag associated with the local variable for indicating an initialization state of the local variable; calling a second function from the first function, with the local variable as a parameter of the second function, wherein the second function comprises a second flag associated with the parameter for indicating an initialization state of the parameter; and updating the first flag based at least on the second flag returned from the second function.
Public/Granted literature
- US20170337119A1 RUNTIME DETECTION OF UNINITIALIZED VARIABLE ACROSS FUNCTIONS Public/Granted day:2017-11-23
Information query