发明名称 METHOD FOR DETECTING ABNORMALITY OF SOFTWARE EXECUTION ON MICROCOMPUTER
摘要 PROBLEM TO BE SOLVED: To prevent a microcomputer from performing abnormal operations by detecting the generation of stack overflow due to collision between the stack area and a data area of a RAM built in the microcomputer. SOLUTION: In continuously securing a control variable for controlling equipment in the direction from the lowermost address to the upper address of the RAM built in the microcomputer 5 for controlling the equipment, a known value is written immediately after the uppermost address of the data area of the control variable. Alternatively, the uppermost address of the data area of the control variable stored in the RAM is retrieved from a mapping file and the known value is written immediately after the retrieved uppermost address. When a stack area continuously secured in the direction from the uppermost address of the RAM to the lower address grows in accordance with the execution of software and collides with the data area, the known value monitored in a prescribed period changes so that stack overflow can be detected. Alternatively, software for executing the retrieval of the uppermost address of the data area, the writing of the known value in the retrieved address and the detection of a change in the known value is previously prepared in compiling the execution software.
申请公布号 JP2003022181(A) 申请公布日期 2003.01.24
申请号 JP20010207709 申请日期 2001.07.09
申请人 FUJI ELECTRIC CO LTD 发明人 NAKAO TOMOHIRO
分类号 G06F12/14;G06F9/34;G06F9/42;G06F11/00;G06F11/30;G06F12/02;G06F12/16;G06F15/78 主分类号 G06F12/14
代理机构 代理人
主权项
地址