| 581 | } |
| 582 | |
| 583 | void Fuzzer::CrashOnOverwrittenData() { |
| 584 | Printf("==%d== ERROR: libFuzzer: fuzz target overwrites its const input\n", |
| 585 | GetPid()); |
| 586 | PrintStackTrace(); |
| 587 | Printf("SUMMARY: libFuzzer: overwrites-const-input\n"); |
| 588 | DumpCurrentUnit("crash-"); |
| 589 | PrintFinalStats(); |
| 590 | _Exit(Options.ErrorExitCode); // Stop right now. |
| 591 | } |
| 592 | |
| 593 | // Compare two arrays, but not all bytes if the arrays are large. |
| 594 | static bool LooseMemeq(const uint8_t *A, const uint8_t *B, size_t Size) { |
nothing calls this directly
no test coverage detected