From 3067c28ceb744b2bafe9202023084f762871e844 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 27 Sep 2023 23:28:50 +0200 Subject: Add `printf` hardening --- tests/Makefile | 1 + tests/test_printf.c | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/test_printf.c (limited to 'tests') diff --git a/tests/Makefile b/tests/Makefile index 4e5ee00..a628a2a 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -64,6 +64,7 @@ RUNTIME_TARGETS= \ test_ppoll_static \ test_pread_dynamic \ test_pread_static \ + test_printf \ test_pwrite_dynamic \ test_pwrite_static \ test_read_dynamic \ diff --git a/tests/test_printf.c b/tests/test_printf.c new file mode 100644 index 0000000..d444a52 --- /dev/null +++ b/tests/test_printf.c @@ -0,0 +1,7 @@ +#include "common.h" + +#include + +int main(int argc, char** argv) { + printf("%s", "1234567"); +} -- cgit v1.3