summaryrefslogtreecommitdiff
path: root/src/stdarg/va_copy.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-02-01 16:58:33 -0500
committerJakob Kaivo <jkk@ung.org>2024-02-01 16:58:33 -0500
commita73164a78c3144cc983dd332705df1a906911017 (patch)
tree49852739ad223014eab0e5261fc0ef7ceeb94532 /src/stdarg/va_copy.c
parent473a9dae23d46a4ec1827e4d68363eea805c08dc (diff)
add symbols for va_* to trigger UB if dlsym()ed
Diffstat (limited to 'src/stdarg/va_copy.c')
-rw-r--r--src/stdarg/va_copy.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stdarg/va_copy.c b/src/stdarg/va_copy.c
new file mode 100644
index 00000000..a2de7c7d
--- /dev/null
+++ b/src/stdarg/va_copy.c
@@ -0,0 +1,11 @@
+#include "_safety.h"
+
+void va_copy()
+{
+ __undefined("The va_copy() macro has been suppressed to access an actual function");
+}
+
+/*
+SIGNAL_SAFE(0)
+STDC(0)
+*/