- Fix regional_alloc_init for potential unaligned source of the copy.

This commit is contained in:
W.C.A. Wijngaards 2023-08-17 15:22:54 +02:00
parent 0f5fecd516
commit 4844fa3481
2 changed files with 2 additions and 1 deletions

View 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

View 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;
}