diff --git a/test/fuzztest/BUILD.gn b/test/fuzztest/BUILD.gn index e79944a8662c632ec9e7ca31ae89d4bcc4da13c8..d44d360d91b308b29b9a020ef0e669f6b5f3d729 100644 --- a/test/fuzztest/BUILD.gn +++ b/test/fuzztest/BUILD.gn @@ -32,6 +32,7 @@ group("fuzztest") { "protocolhandlerresponse_fuzzer:fuzztest", "protocolhandlerrun_fuzzer:fuzztest", "protocolhandlersendreply_fuzzer:fuzztest", + "protocolhandlerwait_fuzzer:fuzztest", "pttypesbreakpointparseid_fuzzer:fuzztest", "pttypesbreakpointtostring_fuzzer:fuzztest", "pttypesexceptiondetails_fuzzer:fuzztest", @@ -45,6 +46,8 @@ group("fuzztest") { "pttypesexceptiondetailstext_fuzzer:fuzztest", "pttypesexceptiondetailstojson_fuzzer:fuzztest", "pttypesexceptiondetailsurl_fuzzer:fuzztest", + "pttypesfunctionremoteobject_fuzzer:fuzztest", + "pttypesgeneratorfunctionremoteobject_fuzzer:fuzztest", "pttypesinternalpropertydesp_fuzzer:fuzztest", "pttypesinternalpropertydespcreate_fuzzer:fuzztest", "pttypesinternalpropertydespname_fuzzer:fuzztest", @@ -75,5 +78,6 @@ group("fuzztest") { "pttypesremoteobjectunserializablevalue_fuzzer:fuzztest", "pttypesstringremoteobject_fuzzer:fuzztest", "pttypessymbolremoteobject_fuzzer:fuzztest", + "wsserver:fuzztest", ] } diff --git a/test/fuzztest/protocolhandlerwait_fuzzer/protocolhandlerwait_fuzzer.cpp b/test/fuzztest/protocolhandlerwait_fuzzer/protocolhandlerwait_fuzzer.cpp index 51e930e55e39bc9ecc7d31dd0b85fbd5b53ff14a..af393de4289c35a67f7a1ab04b2576cf2dc49e49 100644 --- a/test/fuzztest/protocolhandlerwait_fuzzer/protocolhandlerwait_fuzzer.cpp +++ b/test/fuzztest/protocolhandlerwait_fuzzer/protocolhandlerwait_fuzzer.cpp @@ -32,7 +32,8 @@ namespace OHOS { return; } using ProtoHandler = const std::function; - ProtoHandler ph = [data, size](const void *d, [[maybe_unused]] const std::string &s) -> void { + ProtoHandler ph = [data, size] + ([[maybe_unused]] const void *d, [[maybe_unused]] const std::string &s) -> void { d = data + size; }; ProtocolHandler handler(ph, vm);