From: W.C.A. Wijngaards Date: Wed, 16 Aug 2023 08:06:06 +0000 (+0200) Subject: - Fix possibly unaligned memory access. X-Git-Tag: release-1.18.0rc1~14^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b1028bdad6da4d42f0571d0182322c3554e0bcc;p=thirdparty%2Funbound.git - Fix possibly unaligned memory access. --- diff --git a/util/data/msgparse.c b/util/data/msgparse.c index 8cef37a17..40189d613 100644 --- a/util/data/msgparse.c +++ b/util/data/msgparse.c @@ -1049,7 +1049,7 @@ parse_edns_options_from_query(uint8_t* rdata_ptr, size_t rdata_len, /* Copy client cookie, version and timestamp for * validation and creation purposes. */ - memcpy(server_cookie, rdata_ptr, 16); + memmove(server_cookie, rdata_ptr, 16); /* Copy client ip for validation and creation * purposes. It will be overwritten if (re)creation