Invention Grant
US08578343B2 System and method for overflow detection using partial evaluations
有权
使用部分评估进行溢出检测的系统和方法
- Patent Title: System and method for overflow detection using partial evaluations
- Patent Title (中): 使用部分评估进行溢出检测的系统和方法
-
Application No.: US12688078Application Date: 2010-01-15
-
Publication No.: US08578343B2Publication Date: 2013-11-05
- Inventor: Bernhard F. Scholz , Cristina N. Cifuentes , Nathan Robert Albert Keynes
- Applicant: Bernhard F. Scholz , Cristina N. Cifuentes , Nathan Robert Albert Keynes
- Applicant Address: US CA Redwood City
- Assignee: Oracle America, Inc.
- Current Assignee: Oracle America, Inc.
- Current Assignee Address: US CA Redwood City
- Agency: Osha Liang LLP
- Main IPC: G06F9/44
- IPC: G06F9/44

Abstract:
A method for overflow detection using partial evaluations. The method includes obtaining a section of code from a source code file stored on a storage device, analyzing the section of code to identify a buffer with an index, determining a plurality of statements that are statically-computable and dependent on the index of the buffer, and generating a code segment including the plurality of statements. The method further includes replacing an access statement of the plurality of statements with a conditional statement returning true when bounds of the buffer are exceeded, where the access statement uses the index to access the buffer, adding an unconditional statement returning false to the code segment, and executing the code segment on a computer processor to obtain a determination of whether the bounds of the buffer are exceeded.
Public/Granted literature
- US20110179400A1 System and method for overflow detection USING PARTIAL EVALUATIONS Public/Granted day:2011-07-21
Information query