Line | Count | Source |
1 | #include <stdint.h> | |
2 | #include <stddef.h> | |
3 | #include <string.h> | |
4 | #include <stdlib.h> | |
5 | extern "C" char * | |
6 | __cxa_demangle(const char *mangled_name, char *buf, size_t *n, int *status); | |
7 | ||
8 | 32 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { |
9 | 32 | char *str = new char[size+1]; |
10 | 32 | memcpy(str, data, size); |
11 | 32 | str[size] = 0; |
12 | 32 | free(__cxa_demangle(str, 0, 0, 0)); |
13 | 32 | delete [] str; |
14 | 32 | return 0; |
15 | 32 | } |