]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4272] Catch exception in fuzz_config_*
authorAndrei Pavel <andrei@isc.org>
Wed, 5 Aug 2026 11:52:22 +0000 (14:52 +0300)
committerAndrei Pavel <andrei@isc.org>
Thu, 6 Aug 2026 07:34:25 +0000 (10:34 +0300)
src/fuzz/corp/dhcp-6-sample1.json
src/fuzz/fuzz_config_kea_dhcp4.cc
src/fuzz/fuzz_config_kea_dhcp6.cc

index e8f2e659e1d0b2acf094daaebd8d55121517fdcd..7237acf78fff1fbd7b5e258f1d864671167db283 100644 (file)
@@ -10,7 +10,7 @@
 
 # Next we set up the interfaces to be used by the server.
     "interfaces-config": {
-        "interfaces": []
+        "interfaces": ["eth0"]
     },
 
 # And we specify the type of lease database
index 04790e29ef9dbd7e50af7e6f77e21a7afbc3cc09..789a54504eb41e279982880468144bbbbfbce20c 100644 (file)
@@ -64,6 +64,7 @@ LLVMFuzzerTestOneInput(uint8_t const* data, size_t size) {
         server.init(KEA_DHCP4_CONF);
     } catch (BadValue const&) {
     } catch (Dhcp4ParseError const&) {
+    } catch (std::exception const&) {
     }
 
     return 0;
index a8d720464e54a7e15d5a1451bc5d7e45b527979e..593f8744ff65dc2051497c4362765919458c9398 100644 (file)
@@ -64,6 +64,7 @@ LLVMFuzzerTestOneInput(uint8_t const* data, size_t size) {
         server.init(KEA_DHCP6_CONF);
     } catch (BadValue const&) {
     } catch (Dhcp6ParseError const&) {
+    } catch (std::exception const&) {
     }
 
     return 0;