Mercurial > hg
comparison contrib/fuzz/mpatch.cc @ 43816:d37658efbec2
fuzz: remove legacy setup for running fuzzers outside oss-fuzz
We don't need this anymore.
Differential Revision: https://phab.mercurial-scm.org/D7567
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 06 Dec 2019 15:21:45 -0500 |
parents | 51a99e09c54b |
children |
comparison
equal
deleted
inserted
replaced
43815:19da643dc10c | 43816:d37658efbec2 |
---|---|
109 cleanup: | 109 cleanup: |
110 mpatch_lfree(patch); | 110 mpatch_lfree(patch); |
111 return 0; | 111 return 0; |
112 } | 112 } |
113 | 113 |
114 #ifdef HG_FUZZER_INCLUDE_MAIN | |
115 int main(int argc, char **argv) | |
116 { | |
117 // One text, one patch. | |
118 const char data[] = "\x02\x00\0x1\x00\x0d" | |
119 // base text | |
120 "a" | |
121 // binary delta that will append a single b | |
122 "\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01b"; | |
123 return LLVMFuzzerTestOneInput((const uint8_t *)data, 19); | |
124 } | |
125 #endif | |
126 | |
127 } // extern "C" | 114 } // extern "C" |