MCPcopy Create free account
hub / github.com/OISF/libhtp / LLVMFuzzerTestOneInput

Function LLVMFuzzerTestOneInput

test/fuzz/fuzz_diff.c:427–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
428 //initialize output file
429 if (logfile == NULL) {
430 libhtpFuzzInit();
431 }
432
433 htp_connp_t * connp = libhtpFuzzRun(Data, Size);
434 htp_conn_t * conn = htp_connp_get_connection(connp);
435
436 void* rstest = libhtprsFuzzRun(Data, Size);
437 void * rsconnp = libhtprsFuzzConnp(rstest);
438 if (connDiff(rsconnp, conn)) {
439 printf("results are different\n");
440 }
441 libhtprsFreeFuzzRun(rstest);
442
443 htp_connp_destroy_all(connp);
444
445 return 0;
446}
447

Callers

nothing calls this directly

Calls 5

libhtpFuzzInitFunction · 0.85
libhtpFuzzRunFunction · 0.85
htp_connp_get_connectionFunction · 0.85
connDiffFunction · 0.85
htp_connp_destroy_allFunction · 0.85

Tested by

no test coverage detected