2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

Add PoC for assertion failure on large TCP DNS messages

This commit is contained in:
Ondřej Surý 2020-07-31 10:08:41 +02:00
parent bd3d9f33dc
commit 2c796bb9c8
3 changed files with 9 additions and 0 deletions

Binary file not shown.

View File

@ -183,5 +183,13 @@ grep "status: NXDOMAIN" dig.out.test$n > /dev/null || ret=1
if [ $ret != 0 ]; then echo_i "failed"; fi if [ $ret != 0 ]; then echo_i "failed"; fi
status=$((status + ret)) status=$((status + ret))
n=$((n + 1))
echo_i "checking that BIND 9 doesn't crash on long TCP messages ($n)"
ret=0
$PERL ../packet.pl -a "10.53.0.1" -p "${PORT}" -t udp 1996-alloc_dnsbuf-crash-test.pkt || ret=1
dig_with_opts +tcp @10.53.0.1 txt.example > dig.out.test$n || ret=1
if [ $ret != 0 ]; then echo_i "failed"; fi
status=$((status + ret))
echo_i "exit status: $status" echo_i "exit status: $status"
[ $status -eq 0 ] || exit 1 [ $status -eq 0 ] || exit 1

View File

@ -846,6 +846,7 @@
./bin/tests/system/synthfromdnssec/ns1/sign.sh SH 2017,2018,2019,2020 ./bin/tests/system/synthfromdnssec/ns1/sign.sh SH 2017,2018,2019,2020
./bin/tests/system/synthfromdnssec/setup.sh SH 2017,2018,2019,2020 ./bin/tests/system/synthfromdnssec/setup.sh SH 2017,2018,2019,2020
./bin/tests/system/synthfromdnssec/tests.sh SH 2017,2018,2019,2020 ./bin/tests/system/synthfromdnssec/tests.sh SH 2017,2018,2019,2020
./bin/tests/system/tcp/1996-alloc_dnsbuf-crash-test.pkt X 2020
./bin/tests/system/tcp/ans6/ans.py PYTHON 2019,2020 ./bin/tests/system/tcp/ans6/ans.py PYTHON 2019,2020
./bin/tests/system/tcp/clean.sh SH 2014,2016,2018,2019,2020 ./bin/tests/system/tcp/clean.sh SH 2014,2016,2018,2019,2020
./bin/tests/system/tcp/setup.sh SH 2018,2019,2020 ./bin/tests/system/tcp/setup.sh SH 2018,2019,2020