Andres Amaya Garcia | ddebc49 | 2017-10-24 22:16:34 +0100 | [diff] [blame] | 1 | set confirm off |
2 | file ./programs/test/zeroize | ||||
3 | break zeroize.c:90 | ||||
4 | |||||
5 | set args ./programs/test/zeroize.c | ||||
6 | run | ||||
7 | |||||
8 | set $i = 0 | ||||
9 | set $len = sizeof(buf) | ||||
10 | set $buf = buf | ||||
11 | |||||
12 | if exit_code != 0 | ||||
13 | echo The program did not terminate correctly\n | ||||
14 | quit 1 | ||||
15 | end | ||||
16 | |||||
17 | while $i < $len | ||||
18 | if $buf[$i++] != 0 | ||||
19 | echo The buffer at was not zeroized\n | ||||
20 | quit 1 | ||||
21 | end | ||||
22 | end | ||||
23 | |||||
24 | echo The buffer was correctly zeroized\n | ||||
25 | quit 0 |