0

我使用 libfuzzer.a 编写我的第一个模糊测试,这是我的代码

extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {

int size = Size;
printf("size=%d",Size);
return 0;  // Non-zero return values are reserved for future use.
}

但是当我运行这段代码时,我遇到了这个问题,这是怎么回事?

WARNING: Failed to find function "__sanitizer_acquire_crash_state".
WARNING: Failed to find function "__sanitizer_print_stack_trace".
WARNING: Failed to find function "__sanitizer_set_death_callback".
INFO: Seed: 3186764919
INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes
INFO: A corpus is not provided, starting from an empty corpus
#2      INITED exec/s: 0 rss: 26Mb
ERROR: no interesting inputs were found. Is the code instrumented for coverage? Exiting.

你能帮助我吗?谢谢你

4

0 回答 0