about summary refs log tree commit diff
path: root/afl-common.h
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2019-07-13 08:09:19 +0200
committerHexcoder <heiko@hexco.de>2019-07-13 09:39:51 +0200
commitf45332e1ab1f7b82c38c6fcc3c451fca35d5a9ce (patch)
tree1cb23f960ccb9e4881e5e0979a78bb3c4f803262 /afl-common.h
parentd9c70c7b8cdcde0827e167c61f60f862bc9a3ba8 (diff)
downloadafl++-f45332e1ab1f7b82c38c6fcc3c451fca35d5a9ce.tar.gz
portability fix: getcwd(NULL, 0) is a non-POSIX glibc extension. Refactor
detect_file_args() in a separate file in order to avoid multiple copies.
Diffstat (limited to 'afl-common.h')
-rw-r--r--afl-common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/afl-common.h b/afl-common.h
new file mode 100644
index 00000000..07afb75d
--- /dev/null
+++ b/afl-common.h
@@ -0,0 +1,5 @@
+#ifndef __AFLCOMMON_H
+#define __AFLCOMMON_H
+
+void detect_file_args(char **argv, u8 *prog_in);
+#endif