mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
Merge branch '4633-undefined-behaviour-in-rdataslab-c' into 'main'
Resolve "Undefined behaviour in rdataslab.c" Closes #4633 See merge request isc-projects/bind9!8855
This commit is contained in:
@@ -361,7 +361,9 @@ dns_rdataslab_fromrdataset(dns_rdataset_t *rdataset, isc_mem_t *mctx,
|
|||||||
? DNS_RDATASLAB_OFFLINE
|
? DNS_RDATASLAB_OFFLINE
|
||||||
: 0;
|
: 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;
|
rawbuf += x[i].rdata.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user