Grammar-Mutator icon indicating copy to clipboard operation
Grammar-Mutator copied to clipboard

A grammar-based custom mutator for AFL++

Results 10 Grammar-Mutator issues
Sort by recently updated
recently updated
newest added
trafficstars

I suppose it is, so I am sorry for such a stupid question, but I am forced to ask it. Can it be 100% confirmed that this mutator uses a...

Hello . When running Grammar mutator on a target, there is a problem right before running AFL++ on the target . Here is the log : ``` mic@mic-System-Product-Name:~/Documents/AFLplusplus$ ./afl-fuzz -m...

bug

As discussed in #14 the following grammar causes a segfault from AFL (maybe only on startup?): https://paste.pr0.tips/rm This is due to really long recursion: ``` #764 0x00007fffeed762f8 in antlr4::atn::ParserATNSimulator::closureCheckingStopState(std::shared_ptr const&,...

bug

Let's collect some ideas on how to improve the grammar mutator. I am not an expert on this, so some ideas might be not possible, no sense or even makes...

In my experimental environment, I found json to g4 only with "parser" cause some syntax error, syntax parsing errors may lead to the possibility of losing a large amount of...

bug
enhancement
help wanted

going further, I found a way to mitigate; based on the above issues, we create simpler test cases, `test.json`: ``` { "": [["I ", "", "like C++\n"]], "": [["", ""],...

Hi, I'm trying to use the tool to generate Javascript testcases, however when I run `make GRAMMAR_FILE=grammars/javascript.json` I got the following result: `UnicodeEncodeError: 'latin-1' codec can't encode character '\u2421' in...

bug

Hi, Is there a way to produce the generator and mutator from an ANTLR grammar instead of a json-formatted grammar? I know that the antlr grammar is generated and used...

enhancement
help wanted

Hi, Is there a way to parse inputs, to check whether they conform to the grammar written in json or not? I assume this is part of the grammar mutator....

enhancement

``` /home/s0urc3/Downloads/Grammar-Mutator/third_party/antlr4-cpp-runtime/antlr4-cpp-runtime-src/runtime/src/support/Any.h:125:51: error: self-comparison always evaluates to true [-Werror=tautological-compare] 125 | template | ~~^~~~ /home/s0urc3/Downloads/Grammar-Mutator/third_party/antlr4-cpp-runtime/antlr4-cpp-runtime-src/runtime/src/support/Any.h:130:51: error: self-comparison always evaluates to true [-Werror=tautological-compare] 130 | template | ~~^~~~ /home/s0urc3/Downloads/Grammar-Mutator/third_party/antlr4-cpp-runtime/antlr4-cpp-runtime-src/runtime/src/tree/ParseTree.h:49:18: error: ‘virtual...