]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Amend fuzzer.c to correctly call test points
authorNick Porter <nick@portercomputing.co.uk>
Thu, 21 Jan 2021 09:44:19 +0000 (09:44 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 21 Jan 2021 10:35:39 +0000 (10:35 +0000)
src/bin/fuzzer.c

index f12058c7674975680647a7676ebc3cd29dfe355e..6672d65878047636dfc8ed4f13cc13ccc8c65c3f 100644 (file)
@@ -155,11 +155,12 @@ int LLVMFuzzerInitialize(int *argc, char ***argv)
 int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
 {
        TALLOC_CTX *ctx = talloc_init_const("fuzzer");
-       fr_pair_t *vp = NULL;
+       fr_pair_list_t vps;
 
+       fr_pair_list_init(&vps);
        if (!init) LLVMFuzzerInitialize(NULL, NULL);
 
-       tp->func(ctx, &vp, buf, len, decode_ctx);
+       tp->func(ctx, &vps, buf, len, decode_ctx);
        talloc_free(ctx);
 
        return 0;