aboutsummaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_runtime.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-07-22 07:56:14 +0200
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-07-22 12:32:41 +0200
commitebbad02c1b7140f7e9b479586d58aeca03f5350d (patch)
treee828eec122ad87fc0425104c763c32b1964db5f4 /lib/efi_loader/efi_runtime.c
parent01fa922bbbac378902ef85e522724dd7c7a10a8b (diff)
efi_loader: don't use memmove() in efi_var_mem_del()
efi_var_mem_del() is in __efi_runtime because it would be needed for a runtime implementation of SetVariable(). memmove() is not in __efi_runtime. So we should not use it in efi_var_mem_del(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_loader/efi_runtime.c')
-rw-r--r--lib/efi_loader/efi_runtime.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c
index 91a4551448..78fd8014d9 100644
--- a/lib/efi_loader/efi_runtime.c
+++ b/lib/efi_loader/efi_runtime.c
@@ -144,6 +144,8 @@ efi_status_t efi_init_runtime_supported(void)
*
* At runtime memcpy() is not available.
*
+ * Overlapping memory areas can be copied safely if src >= dest.
+ *
* @dest: destination buffer
* @src: source buffer
* @n: number of bytes to copy