xref: /aosp_15_r20/external/AFLplusplus/test/test-custom-mutator.c (revision 08b48e0b10e97b33e7b60c5b6e2243bd915777f2)
1 /**
2  * Reference:
3  * https://github.com/bruce30262/libprotobuf-mutator_fuzzing_learning/blob/master/4_libprotobuf_aflpp_custom_mutator/vuln.c
4  */
5 
6 #include <stdio.h>
7 #include <string.h>
8 #include <math.h>
9 #include <stdlib.h>
10 #include <unistd.h>
11 
main(int argc,char * argv[])12 int main(int argc, char *argv[]) {
13 
14   char str[100];
15   read(0, str, 100);
16   if (str[6] == 'A') { abort(); }
17   return 0;
18 
19 }
20 
21