]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix regional_alloc_init for potential unaligned source of the copy.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 17 Aug 2023 13:22:54 +0000 (15:22 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 17 Aug 2023 13:22:54 +0000 (15:22 +0200)
doc/Changelog
util/regional.c

index bf23a003c2d60189e8f9c739f389f70565b9f07f..28534141751931edb05654075ec23aae3ca00258 100644 (file)
@@ -9,6 +9,7 @@
          `queries_cookie_valid` and `queries_cookie_client` and
          `queries_cookie_invalid` information. The `ip\-ratelimit\-cookie:`
          value determines a rate limit for queries with cookies, if desired.
+       - Fix regional_alloc_init for potential unaligned source of the copy.
 
 2 August 2023: George
        - Move a cache reply callback in worker.c closer to the cache reply
index 93e911c5ec1abbe36bfc7c062a57a7023672bf65..44aee68b20232dfe3ed64410d9d3ecc95cdcf99a 100644 (file)
@@ -186,7 +186,7 @@ regional_alloc_init(struct regional* r, const void *init, size_t size)
 {
        void *s = regional_alloc(r, size);
        if(!s) return NULL;
-       memcpy(s, init, size);
+       memmove(s, init, size);
        return s;
 }