summaryrefslogtreecommitdiffstats
path: root/lib/test_fortify/write_overflow-memmove.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test_fortify/write_overflow-memmove.c')
-rw-r--r--lib/test_fortify/write_overflow-memmove.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/test_fortify/write_overflow-memmove.c b/lib/test_fortify/write_overflow-memmove.c
new file mode 100644
index 000000000..640437c3b
--- /dev/null
+++ b/lib/test_fortify/write_overflow-memmove.c
@@ -0,0 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0-only
+#define TEST \
+ memmove(instance.buf, large_src, sizeof(large_src))
+
+#include "test_fortify.h"