| 425 | } |
| 426 | |
| 427 | int 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 |
nothing calls this directly
no test coverage detected