发明授权
- 专利标题: Method and system for using inverted data to detect corrupt data
- 专利标题(中): 使用反向数据检测损坏数据的方法和系统
-
申请号: US484704申请日: 1995-06-07
-
公开(公告)号: US5699509A公开(公告)日: 1997-12-16
- 发明人: Scott P. Gary , David E. Pope , Tao Chang
- 申请人: Scott P. Gary , David E. Pope , Tao Chang
- 申请人地址: IL Abbott Park
- 专利权人: Abbott Laboratories
- 当前专利权人: Abbott Laboratories
- 当前专利权人地址: IL Abbott Park
- 主分类号: G06F11/08
- IPC分类号: G06F11/08 ; G06F11/16 ; G06F12/16 ; G11C29/00 ; G06F11/00
摘要:
Errors in data stored in the memory of a computer are detected prior to use of the data. A protected data type is declared in writing a program in which errors in critical data must be detected before the data are used. The invention is preferably implemented on a personal computer system (10) or in a microcontroller for a device. When a protected data item is initialized, both the protected data item and its corresponding bit-inverted form are stored in memory. A constructor function is used to determine the bit-inverted form. Any time that the protected data item is subsequently accessed for use by an application program, either the stored protected data item or its corresponding bit-inverted form are inverted for comparison to the other stored data item. Any difference detected in this comparison indicates that a change has occurred in either or both of the protected data item and its corresponding bit-inverted form within memory. Depending upon the application program in which the invention is used, an appropriate action is taken upon detecting such an error, such as providing an indication of the error and terminating further execution of the program.