D | fuzz_3.c | 12 char *bin = malloc(nr); in LLVMFuzzerTestOneInput() local 16 memset(bin, 0, nr); in LLVMFuzzerTestOneInput() 17 memcpy(bin, buf, nr); in LLVMFuzzerTestOneInput() 20 bin[nr-1] = 0x00; // null terminate in LLVMFuzzerTestOneInput() 21 len = bin[0] & 0xff; // want random sized output buf in LLVMFuzzerTestOneInput() 23 nr--; in LLVMFuzzerTestOneInput() 24 bin++; in LLVMFuzzerTestOneInput() 27 len2 = len; sldns_str2wire_dname_buf(bin, bout, &len2); in LLVMFuzzerTestOneInput() 28 len2 = len; sldns_str2wire_int8_buf(bin, bout, &len2); in LLVMFuzzerTestOneInput() 29 len2 = len; sldns_str2wire_int16_buf(bin, bout, &len2); in LLVMFuzzerTestOneInput() [all …]
|