about summary refs log tree commit diff
path: root/examples/post_library
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-05-13 16:39:23 +0200
committerGitHub <noreply@github.com>2020-05-13 16:39:23 +0200
commitc4fe6f5277a8edfbf12d9c9c5db77ceb5271bd7f (patch)
treec039c7192a3aa9f83ac9f7dde9c68dac01f3f607 /examples/post_library
parentf8b3d34225102158ed585130e3de08772e989b53 (diff)
parent645e331559d01d234be231a7f5076c2ad658b159 (diff)
downloadafl++-c4fe6f5277a8edfbf12d9c9c5db77ceb5271bd7f.tar.gz
Merge pull request #361 from rish9101/pre_save_format
Add post library API as custom mutator and rename pre_save
Diffstat (limited to 'examples/post_library')
-rw-r--r--examples/post_library/post_library.so.c2
-rw-r--r--examples/post_library/post_library_png.so.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/post_library/post_library.so.c b/examples/post_library/post_library.so.c
index 0aa780cb..d9504b23 100644
--- a/examples/post_library/post_library.so.c
+++ b/examples/post_library/post_library.so.c
@@ -83,7 +83,7 @@ typedef struct post_state {
 
 } post_state_t;
 
-void *afl_postprocess_init(void *afl) {
+void *afl_postprocess_init(void *afl, unsigned int seed) {
 
   post_state_t *state = malloc(sizeof(post_state_t));
   if (!state) {
diff --git a/examples/post_library/post_library_png.so.c b/examples/post_library/post_library_png.so.c
index 41ba4f5e..b29afd62 100644
--- a/examples/post_library/post_library_png.so.c
+++ b/examples/post_library/post_library_png.so.c
@@ -43,7 +43,7 @@ typedef struct post_state {
 
 } post_state_t;
 
-void *afl_postprocess_init(void *afl) {
+void *afl_postprocess_init(void *afl, unsigned int seed) {
 
   post_state_t *state = malloc(sizeof(post_state_t));
   if (!state) {