发明名称 METHOD AND APPARATUS FOR DETECTING MEMORY ACCESS ERRORS
摘要 Disclosed is a software generation system (SGS) based memory error detection system which may be utilized to detect various memory access errors, such as array dimension violations, dereferencing of invalid pointers, accessing freed memory, reading uninitialized memory, and automated detection of memory leaks. Error checking commands and additional information are inserted into a parse tree associated with a source code file being tested at read-time which serve to initiate and facilitate run-time error detection processes. Wrapper functions may be provided for initiating error checking processes for associated library functions. A pointer check table maintains pointer information, including valid range information, for each pointer that is utilized to monitor the use and modification of the respective pointers. A memory allocation structure records allocation information, including a chain list of all pointers that point to the memory region and an initialization status for each byte in the memory region, for each region of memory. The chain list is utilized to monitor the deallocation of the associated memory region, as well as to detect when there is a memory leak. The initialization status is used to ensure that a region of uninitialized memory is not accessed. A data flow analysis algorithm minimizes the number of pointer checks that have to be performed and allows certain read-time errors to be detected.
申请公布号 CA2140084(A1) 申请公布日期 1995.08.05
申请号 CA19952140084 申请日期 1995.01.12
申请人 AMERICAN TELEPHONE AND TELEGRAPH COMPANY 发明人 GOODNOW, JAMES E., II;KOWALSKI, THADDEUS J.;ROWLAND, JAMES R.
分类号 G06F12/14;G06F9/06;G06F11/28;G06F11/30;G06F11/36;(IPC1-7):G06F11/30 主分类号 G06F12/14
代理机构 代理人
主权项
地址