<<
path:
root/public/blog.git/html/src/fuzzer/basics.jai
blob: abdf862192bb9ea7372e74e996339c2b5f5c7086
[raw]
[clear marker]
2/** Follow this convention
5 LLVMFuzzerTestOneInput :: (data: *u8, size: s64) -> s32 #c_call {
6 provide_context_and_string(); // Important! Macro!
8 ok := test__http_handle_request(src); // `src` stems from the above macro!
10 report_to_llvm("ERROR", src);
20report_to_llvm :: (prefix: string, msg: string) {
21 write_string("---------------------\n");
28provide_context_and_string :: () #expand {
30 `push_context,defer_pop ctx;