diff options
author | Kees Cook <keescook@chromium.org> | 2021-06-16 23:48:19 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-02-14 01:50:06 +0100 |
commit | 938a000e3f9bead24ea753286b3e4d2423275c9e (patch) | |
tree | f3cdcabaea66b2f14b5488b6180cf552814b5aec /arch/x86/lib | |
parent | fortify: Detect struct member overflows in memcpy() at compile-time (diff) | |
download | linux-938a000e3f9bead24ea753286b3e4d2423275c9e.tar.xz linux-938a000e3f9bead24ea753286b3e4d2423275c9e.zip |
fortify: Detect struct member overflows in memmove() at compile-time
As done for memcpy(), also update memmove() to use the same tightened
compile-time checks under CONFIG_FORTIFY_SOURCE.
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r-- | arch/x86/lib/memcpy_32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/lib/memcpy_32.c b/arch/x86/lib/memcpy_32.c index 3a6e6cfe8c35..ef3af7ff2c8a 100644 --- a/arch/x86/lib/memcpy_32.c +++ b/arch/x86/lib/memcpy_32.c @@ -4,6 +4,7 @@ #undef memcpy #undef memset +#undef memmove __visible void *memcpy(void *to, const void *from, size_t n) { |