From 4103ee43e249ee14bd16baf080489a107bbfdbf5 Mon Sep 17 00:00:00 2001 From: yihellen <42916179+yihellen@users.noreply.github.com> Date: Thu, 26 May 2022 07:21:59 -0700 Subject: Add automaton parser (#1426) * have compilable program * enable read in file * add hashmap usage * add build hashmap; WIP; test if constructed correctly tomorrow * add testcase to test hashmap * add sorted symbols list * build symbols dictionary * clean up DEBUG * successfully find automaton path * fix all memory leaks * test if automaton same with example * able to iterate through files in a folder * finish testing on one random queue wip - change macro values - add bound checking * add bound checking to program length * add bound checking to program walk length * add boundary check to terminal number, terminal lengths and program length * commit test makefile * add makefile * able to add seeds to gramatron * remove useless argument in automaton_parser * add automaton parser to gramfuzz * change build * revert test.c to original state * add makefile to test.c for testing --- custom_mutators/gramatron/testMakefile.mk | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 custom_mutators/gramatron/testMakefile.mk (limited to 'custom_mutators/gramatron/testMakefile.mk') diff --git a/custom_mutators/gramatron/testMakefile.mk b/custom_mutators/gramatron/testMakefile.mk new file mode 100644 index 00000000..0b2c6236 --- /dev/null +++ b/custom_mutators/gramatron/testMakefile.mk @@ -0,0 +1,2 @@ +test: test.c + gcc -g -fPIC -Wno-unused-result -Wl,--allow-multiple-definition -I../../include -o test -I. -I/prg/dev/include test.c gramfuzz-helpers.c gramfuzz-mutators.c gramfuzz-util.c hashmap.c ../../src/afl-performance.o json-c/.libs/libjson-c.a \ No newline at end of file -- cgit v1.2.3