• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Test-Case for multiple custom mutators in C
3  * Reference:
4  * https://github.com/bruce30262/libprotobuf-mutator_fuzzing_learning/blob/master/4_libprotobuf_aflpp_custom_mutator/vuln.c
5  */
6 
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include <string.h>
10 #include <unistd.h>
11 
main(int argc,char ** argv)12 int main(int argc, char **argv) {
13 
14   int  a = 0;
15   char s[100];
16   read(0, s, 100);
17 
18   if (s[7] == 'B') { abort(); }
19 
20   return 0;
21 
22 }
23 
24