]> git.ipfire.org Git - thirdparty/bind9.git/commit
Only call memmove if the rdata length is non zero
authorMark Andrews <marka@isc.org>
Tue, 12 Mar 2024 23:15:03 +0000 (10:15 +1100)
committerMark Andrews <marka@isc.org>
Thu, 14 Mar 2024 00:06:11 +0000 (11:06 +1100)
commit3fadd9efec6d0d5b447f26142eef1b2fd9c1bb25
treeb8bfc2c3707c1311d4505b8bd01c0c7e5b484953
parent0ea08e6dc0e9d641ad8fad466f4a3c7ae6797e8e
Only call memmove if the rdata length is non zero

This avoids undefined behaviour on zero length rdata where the
data pointer is NULL.

(cherry picked from commit 228cc557fe4ca29e34eccb3a1846d7f754879aed)
lib/dns/rdataslab.c