mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 12:40:00 -04:00
add a REQUIRE to catch the NULL pointer dereference that triggered CVE-2017-3135
(cherry picked from commit 1d8995d226)
This commit is contained in:
parent
fb8d8cfc2c
commit
8da7fa7b52
1 changed files with 1 additions and 0 deletions
|
|
@ -337,6 +337,7 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name,
|
|||
*/
|
||||
|
||||
REQUIRE(DNS_RDATASET_VALID(rdataset));
|
||||
REQUIRE(rdataset->methods != NULL);
|
||||
REQUIRE(countp != NULL);
|
||||
REQUIRE((order == NULL) == (order_arg == NULL));
|
||||
REQUIRE(cctx != NULL && cctx->mctx != NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue