mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 14:19:59 -04:00
2884. [bug] Insufficient valadation in dns_name_getlabelsequence().
[RT #21283]
This commit is contained in:
parent
b72434ce64
commit
f083a44415
2 changed files with 5 additions and 2 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,3 +1,6 @@
|
|||
2884. [bug] Insufficient valadation in dns_name_getlabelsequence().
|
||||
[RT #21283]
|
||||
|
||||
2883. [bug] 'dig +short' failed to handle really large datasets.
|
||||
[RT #21113]
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: name.c,v 1.169 2009/09/01 17:36:51 jinmei Exp $ */
|
||||
/* $Id: name.c,v 1.170 2010/05/12 05:40:32 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
|
|
@ -902,7 +902,7 @@ dns_name_getlabelsequence(const dns_name_t *source,
|
|||
REQUIRE(VALID_NAME(source));
|
||||
REQUIRE(VALID_NAME(target));
|
||||
REQUIRE(first <= source->labels);
|
||||
REQUIRE(first + n <= source->labels);
|
||||
REQUIRE(n <= source->labels - first); /* note first+n could overflow */
|
||||
REQUIRE(BINDABLE(target));
|
||||
|
||||
SETUP_OFFSETS(source, offsets, odata);
|
||||
|
|
|
|||
Loading…
Reference in a new issue