Skip to content

Commit 959531b

Browse files
authored
Update GuardedMemcpy.md (#602)
Fix the signature of `memcpy`.
1 parent 6066cba commit 959531b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/security/GuardedMemcpy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ So let's see how we detect this with snmalloc.
1212

1313
## What is `memcpy`?
1414

15-
So `memcpy(src, dst, len)` copies `len` bytes from `src` to `dst`.
15+
So `memcpy(dst, src, len)` copies `len` bytes from `src` to `dst`.
1616
For this to be valid, we can check:
1717
```
1818
if (src is managed by snmalloc)

0 commit comments

Comments
 (0)