Example of coverage in LibFuzzer on Windows

216 Views Asked by At

I try to find some information how to run some example code:

bool FuzzMe1(const uint8_t* Data, size_t DataSize) {
    return DataSize >= 4 &&
        Data[0] == 'F' &&
        Data[1] == 'U' &&
        Data[2] == 'Z' &&
        Data[3] == 'Z';  // :‑<
}
extern "C" int LLVMFuzzerTestOneInput(const uint8_t * Data, size_t Size) {
    FuzzMe1(Data, Size); //Example
    //FuzzMe2(Data, Size); //Example
    return 0;
}

I would like to receive coverage information of result like in this website: https://github.com/google/fuzzing/blob/master/tutorial/libFuzzerTutorial.md enter image description here

but,I receive this result: enter image description here

I working on Windows and VS 2022.

0

There are 0 best solutions below