2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 21:17:54 +00:00

3253. [bug] Return DNS_R_SYNTAX when the input to a text field is

too long. [RT #26956]
This commit is contained in:
Mark Andrews 2011-12-22 07:41:29 +00:00
parent f30785f506
commit a5a30ae7c0
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,6 @@
3253. [bug] Return DNS_R_SYNTAX when the input to a text field is
too long. [RT #26956]
3252. [bug] When master zones using inline-signing were
updated while the server was offline, the source
zone could fall out of sync with the signed

View File

@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rdata.c,v 1.214 2011/11/02 01:01:52 marka Exp $ */
/* $Id: rdata.c,v 1.215 2011/12/22 07:41:29 marka Exp $ */
/*! \file */
@ -1138,7 +1138,8 @@ txt_fromtext(isc_textregion_t *source, isc_buffer_t *target) {
}
escape = ISC_FALSE;
if (nrem == 0)
return (ISC_R_NOSPACE);
return ((tregion.length <= 256U) ?
ISC_R_NOSPACE : DNS_R_SYNTAX);
*t++ = c;
nrem--;
}