From: Andrei Pavel Date: Thu, 6 Aug 2026 06:46:38 +0000 (+0300) Subject: [#4272] Review X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfbf89074e2c26f45b8d5dd17dc60b15088b7b26;p=thirdparty%2Fkea.git [#4272] Review --- diff --git a/src/fuzz/fuzz_dhcp_pkt_process4.cc b/src/fuzz/fuzz_dhcp_pkt_process4.cc index fa2054d8bc..d0c316745d 100644 --- a/src/fuzz/fuzz_dhcp_pkt_process4.cc +++ b/src/fuzz/fuzz_dhcp_pkt_process4.cc @@ -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&) { diff --git a/src/fuzz/helper_func.h b/src/fuzz/helper_func.h index a799ce3973..d9df30deda 100644 --- a/src/fuzz/helper_func.h +++ b/src/fuzz/helper_func.h @@ -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 #include +#include + 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 diff --git a/src/fuzz/mysqlmock.cc b/src/fuzz/mysqlmock.cc index aaeca6fadd..8317e12763 100644 --- a/src/fuzz/mysqlmock.cc +++ b/src/fuzz/mysqlmock.cc @@ -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()) {