]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
disable encoder tests again
authorAlan T. DeKok <aland@freeradius.org>
Sun, 14 Dec 2025 13:14:23 +0000 (08:14 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 14 Dec 2025 13:14:23 +0000 (08:14 -0500)
they're still showing random failures in CI.  It's difficult to
track down the issues when CI stubbornly refuses to show useful
stack traces, and we can't reproduce the issues locally.

src/bin/fuzzer.c

index 7aa62085b17e895097547d32f4d4e028c3269fc4..f941047392707698c4157453e239bd1cf56113dc 100644 (file)
@@ -43,6 +43,7 @@ static dl_t                   *dl = NULL;
 static dl_loader_t             *dl_loader;
 static fr_dict_protocol_t      *dl_proto;
 static TALLOC_CTX              *autofree = NULL;
+static bool                    do_encode = false;
 
 static fr_dict_t               *dict = NULL;
 
@@ -291,7 +292,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
 
                if (fr_debug_lvl > 3) fr_pair_list_debug(stderr, &vps);
 
-               (void) tp_encode->func(ctx, &vps, encoded_data, sizeof(encoded_data), encode_ctx);
+               if (do_encode) (void) tp_encode->func(ctx, &vps, encoded_data, sizeof(encoded_data), encode_ctx);
        }
 
        talloc_free(decode_ctx);