Sha256: d7a698f8da226610136b16f5003cdbfe9e0359a0d8a230d42513f625410acd9d
Contents?: true
Size: 391 Bytes
Versions: 10
Compression:
Stored size: 391 Bytes
Contents
#include <stdlib.h> #include <string.h> #include <mruby.h> #include <mruby/compile.h> int LLVMFuzzerTestOneInput(uint8_t *Data, size_t size) { if (size < 1) { return 0; } char *code = malloc(size+1); memcpy(code, Data, size); code[size] = '\0'; mrb_state *mrb = mrb_open(); mrb_load_string(mrb, code); mrb_close(mrb); free(code); return 0; }
Version data entries
10 entries across 10 versions & 1 rubygems