Commit f083a444 authored by Mark Andrews's avatar Mark Andrews

2884. [bug] Insufficient valadation in dns_name_getlabelsequence().

                        [RT #21283]
parent b72434ce
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment