mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
3027. [bug] Add documented REQUIREs to cfg_obj_asnetprefix() to
catch NULL pointer dereferences before they happen. [RT #22521]
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -1,3 +1,7 @@
|
|||||||
|
3027. [bug] Add documented REQUIREs to cfg_obj_asnetprefix() to
|
||||||
|
catch NULL pointer dereferences before they happen.
|
||||||
|
[RT #22521]
|
||||||
|
|
||||||
3026. [bug] lib/isc/httpd.c: check that we have enough space
|
3026. [bug] lib/isc/httpd.c: check that we have enough space
|
||||||
after calling grow_headerspace() and if not
|
after calling grow_headerspace() and if not
|
||||||
re-call grow_headerspace() until we do. [RT #22521]
|
re-call grow_headerspace() until we do. [RT #22521]
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: parser.c,v 1.139 2011/01/04 23:47:14 tbox Exp $ */
|
/* $Id: parser.c,v 1.140 2011/02/21 06:07:49 marka Exp $ */
|
||||||
|
|
||||||
/*! \file */
|
/*! \file */
|
||||||
|
|
||||||
@@ -2006,8 +2006,12 @@ cfg_obj_isnetprefix(const cfg_obj_t *obj) {
|
|||||||
|
|
||||||
void
|
void
|
||||||
cfg_obj_asnetprefix(const cfg_obj_t *obj, isc_netaddr_t *netaddr,
|
cfg_obj_asnetprefix(const cfg_obj_t *obj, isc_netaddr_t *netaddr,
|
||||||
unsigned int *prefixlen) {
|
unsigned int *prefixlen)
|
||||||
|
{
|
||||||
REQUIRE(obj != NULL && obj->type->rep == &cfg_rep_netprefix);
|
REQUIRE(obj != NULL && obj->type->rep == &cfg_rep_netprefix);
|
||||||
|
REQUIRE(netaddr != NULL);
|
||||||
|
REQUIRE(prefixlen != NULL);
|
||||||
|
|
||||||
*netaddr = obj->value.netprefix.address;
|
*netaddr = obj->value.netprefix.address;
|
||||||
*prefixlen = obj->value.netprefix.prefixlen;
|
*prefixlen = obj->value.netprefix.prefixlen;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user