]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4272] Review
authorAndrei Pavel <andrei@isc.org>
Thu, 6 Aug 2026 06:46:38 +0000 (09:46 +0300)
committerAndrei Pavel <andrei@isc.org>
Thu, 6 Aug 2026 07:34:25 +0000 (10:34 +0300)
src/fuzz/fuzz_dhcp_pkt_process4.cc
src/fuzz/helper_func.h
src/fuzz/mysqlmock.cc

index fa2054d8bc586ded2c3fb139f1dc384e6295adc3..d0c316745d19517d623a3941f73e955a3a952e21 100644 (file)
@@ -178,7 +178,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
 
     // Call process functions after the accept and check
     try {
-        srv->processDhcp4Query(pkt, fdp->ConsumeBool());
+        srv->processDhcp4Query(pkt, fdp.ConsumeBool());
     } catch (const isc::Exception& e) {
         // Silent exceptions
     } catch (const std::exception&) {
index a799ce39731f8c72f08c82d57a9c203531cc1da3..d9df30dedae0843391520210a44f87b140841cec 100644 (file)
@@ -6,12 +6,13 @@
 //
 // Developed by AdaLogics under contract to ISC.
 
-#ifndef HELPER_FUNC_H
-#define HELPER_FUNC_H
+#ifndef KEA_FUZZ_HELPER_FUNC_H
+#define KEA_FUZZ_HELPER_FUNC_H
 
-#include <string>
 #include <cc/data.h>
 
+#include <string>
+
 static const std::string JSON_CONFIG4 = R"CONFIG(
     {
         "Dhcp4":{
@@ -88,4 +89,4 @@ namespace fuzz {
     isc::data::ElementPtr parseJSON(const std::string& s);
 }
 
-#endif // HELPER_FUNC_H
+#endif  // KEA_FUZZ_HELPER_FUNC_H
index aaeca6faddc8b6bca5d3a63b7c4094a73e6b3c9c..8317e12763394263af043009c0a15a1d5527edea 100644 (file)
@@ -419,7 +419,7 @@ extern "C" {
     int mysql_stmt_fetch(MYSQL_STMT* stmt) {
         auto s = SS(stmt);
 
-        if (!s || !s->has_rows){
+        if (!s || !s->has_rows) {
              return MYSQL_NO_DATA;
         }
         if (s->fetch_index >= s->rows.size()) {