mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 18:30:00 -04:00
Merge branch '4633-undefined-behaviour-in-rdataslab-c-bind-9.18' into 'bind-9.18'
[9.18] Resolve "Undefined behaviour in rdataslab.c" See merge request isc-projects/bind9!8860
This commit is contained in:
commit
3b6924df4a
1 changed files with 3 additions and 1 deletions
|
|
@ -320,7 +320,9 @@ dns_rdataslab_fromrdataset(dns_rdataset_t *rdataset, isc_mem_t *mctx,
|
|||
? DNS_RDATASLAB_OFFLINE
|
||||
: 0;
|
||||
}
|
||||
memmove(rawbuf, x[i].rdata.data, x[i].rdata.length);
|
||||
if (x[i].rdata.length != 0) {
|
||||
memmove(rawbuf, x[i].rdata.data, x[i].rdata.length);
|
||||
}
|
||||
rawbuf += x[i].rdata.length;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue