Commit 940449fc authored by Mark Andrews's avatar Mark Andrews

4845. [bug] Dig (non iOS) should exit on malformed names.

                        [RT #46806]
parent cb8650d8
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment