Skip to content

Commit

Permalink
Update GuardedMemcpy.md (#602)
Browse files Browse the repository at this point in the history
Fix the signature of `memcpy`.
  • Loading branch information
saaramar authored Mar 7, 2023
1 parent 6066cba commit 959531b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/security/GuardedMemcpy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 959531b

Please sign in to comment.