]> 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:25 +0000 (11:06 +1100)
commit3bcd6385d446b21372034bc5ce48623276712fa7
tree686f95b007f15e8fbf2de5dad2c357b1e3a007be
parent93b877527c759f19ebdf48777c809069c5059519
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