mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-27 09:06:51 -04:00
[v9_8] zone parsing broken with embedded null
3534. [bug] Extra text after an embedded NULL was ignored when
parsing zone files. [RT #32699]
(cherry picked from commit 4bf686cf5d)
This commit is contained in:
parent
f2cd940170
commit
02e16ccc72
4 changed files with 14 additions and 0 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
3534. [bug] Extra text after an embedded NULL was ignored when
|
||||
parsing zone files. [RT #32699]
|
||||
|
||||
3533. [contrib] query-loc-0.4.0: memory leaks. [RT #32960]
|
||||
|
||||
3532. [contrib] zkt: fixed buffer overrun, resource leaks. [RT #32960]
|
||||
|
|
|
|||
|
|
@ -30,4 +30,14 @@ do
|
|||
status=`expr $status + $ret`
|
||||
done
|
||||
|
||||
for db in zones/bad*.db
|
||||
do
|
||||
echo "I:checking $db ($n)"
|
||||
ret=0
|
||||
$CHECKZONE -i local example $db > test.out.$n 2>&1 && ret=1
|
||||
n=`expr $n + 1`
|
||||
if [ $ret != 0 ]; then echo "I:failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
done
|
||||
|
||||
exit $status
|
||||
|
|
|
|||
BIN
bin/tests/system/checkzone/zones/bad1.db
Normal file
BIN
bin/tests/system/checkzone/zones/bad1.db
Normal file
Binary file not shown.
|
|
@ -569,6 +569,7 @@ loadctx_create(dns_masterformat_t format, isc_mem_t *mctx,
|
|||
goto cleanup_inc;
|
||||
lctx->keep_lex = ISC_FALSE;
|
||||
memset(specials, 0, sizeof(specials));
|
||||
specials[0] = 1;
|
||||
specials['('] = 1;
|
||||
specials[')'] = 1;
|
||||
specials['"'] = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue