summaryrefslogtreecommitdiff
path: root/lib/test_fortify/read_overflow-memscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test_fortify/read_overflow-memscan.c')
-rw-r--r--lib/test_fortify/read_overflow-memscan.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/test_fortify/read_overflow-memscan.c b/lib/test_fortify/read_overflow-memscan.c
new file mode 100644
index 000000000000..c1a97f2df0f0
--- /dev/null
+++ b/lib/test_fortify/read_overflow-memscan.c
@@ -0,0 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0-only
+#define TEST \
+ memscan(small, 0x7A, sizeof(small) + 1)
+
+#include "test_fortify.h"