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

Version Path
script_core-0.3.2 ext/enterprise_script_service/mruby/oss-fuzz/mruby_fuzzer.c
script_core-0.3.0 ext/enterprise_script_service/mruby/oss-fuzz/mruby_fuzzer.c
script_core-0.2.7 ext/enterprise_script_service/mruby/oss-fuzz/mruby_fuzzer.c
script_core-0.2.6 ext/enterprise_script_service/mruby/oss-fuzz/mruby_fuzzer.c
script_core-0.2.5 ext/enterprise_script_service/mruby/oss-fuzz/mruby_fuzzer.c
script_core-0.2.4 ext/enterprise_script_service/mruby/oss-fuzz/mruby_fuzzer.c
script_core-0.2.3 ext/enterprise_script_service/mruby/oss-fuzz/mruby_fuzzer.c
script_core-0.2.2 ext/enterprise_script_service/mruby/oss-fuzz/mruby_fuzzer.c
script_core-0.2.1 ext/enterprise_script_service/mruby/oss-fuzz/mruby_fuzzer.c
script_core-0.2.0 ext/enterprise_script_service/mruby/oss-fuzz/mruby_fuzzer.c