about summary refs log tree commit diff
path: root/custom_mutators/gramatron/gramfuzz-util.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-07-09 12:31:29 +0200
committervanhauser-thc <vh@thc.org>2021-07-09 12:31:29 +0200
commit1b2637545b6b9f171ea46ed6cf5164e8d05d1776 (patch)
treea5b86e84fb17d7330391c6b831c0184f26d00030 /custom_mutators/gramatron/gramfuzz-util.c
parentd354ec2586a3a31c87a8b95433c2886f04c44a03 (diff)
downloadafl++-1b2637545b6b9f171ea46ed6cf5164e8d05d1776.tar.gz
reenable splicing
Diffstat (limited to 'custom_mutators/gramatron/gramfuzz-util.c')
-rw-r--r--custom_mutators/gramatron/gramfuzz-util.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/custom_mutators/gramatron/gramfuzz-util.c b/custom_mutators/gramatron/gramfuzz-util.c
index 41ffd86d..2e0af936 100644
--- a/custom_mutators/gramatron/gramfuzz-util.c
+++ b/custom_mutators/gramatron/gramfuzz-util.c
@@ -248,32 +248,6 @@ Array *parse_input(state *pda, FILE *fp) {
 
 }
 
-Array *open_input(state *pda, u8 *data, size_t len) {
-
-  int fd = memfd_create("foo", O_RDWR);
-  if (fd < 0) {
-
-    fprintf(stderr, "Error: memfd_create failed\n");
-    return NULL;
-
-  }
-
-  ck_write(fd, data, len, "memfd_create");
-  lseek(fd, 0, SEEK_SET);
-  FILE *f = fdopen(fd, "rb");
-  if (!f) {
-
-    fprintf(stderr, "Error: fdopen failed\n");
-    return NULL;
-
-  }
-
-  Array *res = parse_input(pda, f);
-  fclose(f);
-  return res;
-
-}
-
 // Read the input representation into memory
 Array *read_input(state *pda, u8 *fn) {