Add PoC system test for pk11_numbits() assertion

(cherry picked from commit a69433ba40)
This commit is contained in:
Ondřej Surý
2020-07-21 15:56:13 +02:00
committed by Ondřej Surý
parent e7dca64cf7
commit f195c192a6
3 changed files with 26 additions and 0 deletions

View File

@@ -138,5 +138,10 @@ echo_i "Checking if all supported algorithms were tested"
[ "$n" -eq "$(wc -l < supported)" ] || ret=1
test_done
echo_i "Checking for assertion failure in pk11_numbits()"
$PERL ../packet.pl -a "10.53.0.1" -p "$PORT" -t udp 2037-pk11_numbits-crash-test.pkt
dig_with_opts @10.53.0.1 version.bind. CH TXT > dig.out.pk11_numbits || ret=1
test_done
echo_i "exit status: $status"
[ "$status" -eq 0 ] || exit 1