From 03c237644a49b0b47ea0b40a0d506c42cb81e6ee Mon Sep 17 00:00:00 2001 From: Saar Amar Date: Tue, 7 Mar 2023 11:39:00 +0200 Subject: [PATCH] Update GuardedMemcpy.md Fix the signature of `memcpy`. --- docs/security/GuardedMemcpy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/security/GuardedMemcpy.md b/docs/security/GuardedMemcpy.md index a871042b8..0a7228d18 100644 --- a/docs/security/GuardedMemcpy.md +++ b/docs/security/GuardedMemcpy.md @@ -12,7 +12,7 @@ So let's see how we detect this with snmalloc. ## What is `memcpy`? -So `memcpy(src, dst, len)` copies `len` bytes from `src` to `dst`. +So `memcpy(dst, src, len)` copies `len` bytes from `src` to `dst`. For this to be valid, we can check: ``` if (src is managed by snmalloc)