From 959531b6e3e33315c9d6a99643bc826543e715f5 Mon Sep 17 00:00:00 2001 From: Saar Amar Date: Tue, 7 Mar 2023 12:32:40 +0200 Subject: [PATCH] Update GuardedMemcpy.md (#602) 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)