mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +00:00
4208. [bug] Address null pointer dereferences on out of memory.
[RT #40764]
This commit is contained in:
parent
7d2c4d1c9f
commit
fe51e068f0
3
CHANGES
3
CHANGES
@ -1,3 +1,6 @@
|
|||||||
|
4208. [bug] Address null pointer dereferences on out of memory.
|
||||||
|
[RT #40764]
|
||||||
|
|
||||||
4207. [bug] Handle class mismatches with raw zone files.
|
4207. [bug] Handle class mismatches with raw zone files.
|
||||||
[RT #40746]
|
[RT #40746]
|
||||||
|
|
||||||
|
@ -903,6 +903,8 @@ ns_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
|||||||
|
|
||||||
len = strlen(dlzname) + 5;
|
len = strlen(dlzname) + 5;
|
||||||
cpval = isc_mem_allocate(mctx, len);
|
cpval = isc_mem_allocate(mctx, len);
|
||||||
|
if (cpval == NULL)
|
||||||
|
return (ISC_R_NOMEMORY);
|
||||||
snprintf(cpval, len, "dlz %s", dlzname);
|
snprintf(cpval, len, "dlz %s", dlzname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -641,6 +641,8 @@ read_sessionkey(isc_mem_t *mctx, isc_log_t *lctx) {
|
|||||||
|
|
||||||
len = strlen(algorithm) + strlen(mykeyname) + strlen(secretstr) + 3;
|
len = strlen(algorithm) + strlen(mykeyname) + strlen(secretstr) + 3;
|
||||||
keystr = isc_mem_allocate(mctx, len);
|
keystr = isc_mem_allocate(mctx, len);
|
||||||
|
if (keystr == NULL)
|
||||||
|
fatal("out of memory");
|
||||||
snprintf(keystr, len, "%s:%s:%s", algorithm, mykeyname, secretstr);
|
snprintf(keystr, len, "%s:%s:%s", algorithm, mykeyname, secretstr);
|
||||||
setup_keystr();
|
setup_keystr();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user