mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 07:00:30 +00:00
16 lines
344 B
C
16 lines
344 B
C
#include <r_types.h>
|
|
#include <r_util/r_log.h>
|
|
#include <r_util/r_punycode.h>
|
|
|
|
int LLVMFuzzerInitialize(int *lf_argc, char ***lf_argv) {
|
|
r_log_set_quiet (true);
|
|
return 0;
|
|
}
|
|
|
|
int LLVMFuzzerTestOneInput(const ut8 *data, size_t len) {
|
|
int dstlen;
|
|
char *out = r_punycode_decode ((const char*)data, (int)len, &dstlen);
|
|
free (out);
|
|
return 0;
|
|
}
|