diff options
author | van Hauser <vh@thc.org> | 2021-02-01 12:01:23 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2021-02-01 12:01:23 +0100 |
commit | 981ffb27a8a166b51a06d57fce044ed1eaf1aa62 (patch) | |
tree | f4ee467c9b3df7fbfc84533429717f64f7b6e4ab /test-instr.c | |
parent | 522eacce71a91f0495834215b08ac38750a4f5d8 (diff) | |
download | afl++-981ffb27a8a166b51a06d57fce044ed1eaf1aa62.tar.gz |
making AFL_MAP_SIZE obsolete
Diffstat (limited to 'test-instr.c')
-rw-r--r-- | test-instr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test-instr.c b/test-instr.c index 84ac0036..00799103 100644 --- a/test-instr.c +++ b/test-instr.c @@ -32,7 +32,8 @@ int main(int argc, char **argv) { } else { - if (argc >= 3 && strcmp(argv[1], "-f") == 0) + if (argc >= 3 && strcmp(argv[1], "-f") == 0) { + if ((fd = open(argv[2], O_RDONLY)) < 0) { fprintf(stderr, "Error: unable to open %s\n", argv[2]); @@ -40,6 +41,8 @@ int main(int argc, char **argv) { } + } + if (read(fd, buf, sizeof(buf)) < 1) { printf("Hum?\n"); |