| 1 | |
| 2 | #include "c2.h" |
| 3 | #include <stddef.h> |
| 4 | #include <stdint.h> |
| 5 | #include "config.h" |
| 6 | #include "log.h" |
| 7 | |
| 8 | int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { |
| 9 | log_init_tls(); |
| 10 | if (size == 0) { |
| 11 | return 0; |
| 12 | } |
| 13 | if (data[size - 1] != 0) { |
| 14 | return 0; |
| 15 | } |
| 16 | c2_lptr_t *cond = c2_parse(NULL, (char *)data, NULL); |
| 17 | (void)cond; |
| 18 | (void)size; |
| 19 | return 0; // Values other than 0 and -1 are reserved for future use. |
| 20 | } |