]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Have the fuzzer print out talloc errors
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 2 Nov 2021 14:49:50 +0000 (10:49 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 2 Nov 2021 14:49:50 +0000 (10:49 -0400)
src/bin/fuzzer.c

index 2bcde981ec35824cee8762220e19047e1ae02a75..afcbbd0416a734a999d995944ec75afe460f4b57 100644 (file)
@@ -77,6 +77,11 @@ int LLVMFuzzerInitialize(int *argc, char ***argv)
         */
        fr_atexit_global_setup();
 
+       /*
+        *      Initialise the talloc fault handlers.
+        */
+       fr_talloc_fault_setup();
+
        /*
         *      Initialise the error stack _before_ we run any
         *      tests so there's no chance of the memory