3438. [bug] Don't accept unknown data escape in quotes. [RT #32031]
Squashed commit of the following: commit 7ad3daade513c94a1c92ee7c91c112f161d13ef4 Author: Mark Andrews <marka@isc.org> Date: Mon Dec 3 15:03:44 2012 +1100 look at the second token to determine if a TXT record in of unknown format or not commit 7df32138462646f6aee84ffa56d02ac24ec8d672 Author: Mark Andrews <marka@isc.org> Date: Mon Dec 3 12:42:18 2012 +1100 '"\#"' was incorrectly being treated as a unknown data escape sequence.
This commit is contained in:
@@ -172,5 +172,19 @@ diff large.out dig.out > /dev/null || { ret=1 ; echo "I: diff failed"; }
|
||||
[ $ret = 0 ] || echo "I: failed"
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:check that '"'"\\#"'"' is not treated as the unknown escape sequence"
|
||||
ret=0
|
||||
DIG $DIGOPTS @10.53.0.1 +tcp +short txt8.example txt > dig.out
|
||||
echo '"#" "2" "0145"' | diff - dig.out || ret=1
|
||||
[ $ret = 0 ] || echo "I: failed"
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:check that '"'TXT \# text'"' is not treated as the unknown escape sequence"
|
||||
ret=0
|
||||
DIG $DIGOPTS @10.53.0.1 +tcp +short txt9.example txt > dig.out
|
||||
echo '"#" "text"' | diff - dig.out || ret=1
|
||||
[ $ret = 0 ] || echo "I: failed"
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo "I:exit status: $status"
|
||||
exit $status
|
||||
|
||||
Reference in New Issue
Block a user