local/global var for compare-transform-pass and code-format

This commit is contained in:
van Hauser
2020-04-12 12:13:01 +02:00
parent 4ed43b7632
commit 0a525f768b
6 changed files with 184 additions and 50 deletions

View File

@ -1,5 +1,6 @@
/**
* Reference: https://github.com/bruce30262/libprotobuf-mutator_fuzzing_learning/blob/master/4_libprotobuf_aflpp_custom_mutator/vuln.c
* Reference:
* https://github.com/bruce30262/libprotobuf-mutator_fuzzing_learning/blob/master/4_libprotobuf_aflpp_custom_mutator/vuln.c
*/
#include <stdio.h>
@ -8,12 +9,12 @@
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
char str[100];
read(0, str, 100);
if( str[6] == 'A') {
abort();
}
return 0;
int main(int argc, char *argv[]) {
char str[100];
read(0, str, 100);
if (str[6] == 'A') { abort(); }
return 0;
}