Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
940449fc
Commit
940449fc
authored
Dec 12, 2017
by
Mark Andrews
Browse files
4845. [bug] Dig (non iOS) should exit on malformed names.
[RT #46806]
parent
cb8650d8
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
940449fc
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]
...
...
bin/dig/dighost.c
View file @
940449fc
...
...
@@ -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
}
}
...
...
bin/tests/system/digdelv/tests.sh
View file @
940449fc
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment