mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 20:22:05 -04:00
parent
cb8650d875
commit
940449fc72
3 changed files with 17 additions and 0 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
4845. [bug] Dig (non iOS) should exit on malformed names.
|
||||
[RT #46806]
|
||||
|
||||
4844. [test] Address memory leaks in libatf-c. [RT #46798]
|
||||
|
||||
4843. [bug] dnssec-signzone free hashlist on exit. [RT #46791]
|
||||
|
|
|
|||
|
|
@ -2203,6 +2203,8 @@ setup_lookup(dig_lookup_t *lookup) {
|
|||
#if TARGET_OS_IPHONE
|
||||
check_next_lookup(current_lookup);
|
||||
return (ISC_FALSE);
|
||||
#else
|
||||
digexit();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -471,6 +471,18 @@ if [ -x ${DIG} ] ; then
|
|||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo "I:check that dig gracefully handles bad escape in domain name ($n)"
|
||||
ret=0
|
||||
$DIG $DIGOPTS @10.53.0.3 '\0.' > dig.out.test$n 2>&1
|
||||
digstatus=$?
|
||||
echo digstatus=$digstatus >> dig.out.test$n
|
||||
test $digstatus -eq 10 || ret=1
|
||||
grep REQUIRE dig.out.test$n > /dev/null && ret=1
|
||||
grep "is not a legal name (bad escape)" dig.out.test$n > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
else
|
||||
echo "$DIG is needed, so skipping these dig tests"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue