mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-06 07:10:41 +00:00
26 lines
401 B
Plaintext
26 lines
401 B
Plaintext
|
set confirm off
|
||
|
file ./programs/test/zeroize
|
||
|
break zeroize.c:90
|
||
|
|
||
|
set args ./programs/test/zeroize.c
|
||
|
run
|
||
|
|
||
|
set $i = 0
|
||
|
set $len = sizeof(buf)
|
||
|
set $buf = buf
|
||
|
|
||
|
if exit_code != 0
|
||
|
echo The program did not terminate correctly\n
|
||
|
quit 1
|
||
|
end
|
||
|
|
||
|
while $i < $len
|
||
|
if $buf[$i++] != 0
|
||
|
echo The buffer at was not zeroized\n
|
||
|
quit 1
|
||
|
end
|
||
|
end
|
||
|
|
||
|
echo The buffer was correctly zeroized\n
|
||
|
quit 0
|