From 7523664f398742e1cb4bbe1f2cd56c6d72eaca92 Mon Sep 17 00:00:00 2001 From: pwx1285814 Date: Thu, 25 Apr 2024 20:17:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=B1=E8=B4=A5=E7=9A=84fu?= =?UTF-8?q?zz=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: pwx1285814 --- .../dscreensourceservice_fuzzer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourceservice_fuzzer/dscreensourceservice_fuzzer.cpp b/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourceservice_fuzzer/dscreensourceservice_fuzzer.cpp index e5140048..fb39e963 100644 --- a/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourceservice_fuzzer/dscreensourceservice_fuzzer.cpp +++ b/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourceservice_fuzzer/dscreensourceservice_fuzzer.cpp @@ -33,8 +33,9 @@ void DscreenSourceServiceFuzzTest(const uint8_t* data, size_t size) std::string attrs(reinterpret_cast(data), size); EnableParam param; param.sinkVersion = version; - param.sinkAttrs = attrs; + param.sinkAttrs = ""; uint32_t code = *(reinterpret_cast(data)) % 2; + uint32_t eventCode = 1; std::string dhId(reinterpret_cast(data), size); std::string devId(reinterpret_cast(data), size); std::string reqId(reinterpret_cast(data), size); @@ -46,7 +47,7 @@ void DscreenSourceServiceFuzzTest(const uint8_t* data, size_t size) sourceServicePtr->Init(); sourceServicePtr->InitSource(params, callback); sourceServicePtr->RegisterDistributedHardware(devId, dhId, param, reqId); - sourceServicePtr->DScreenNotify(devId, code, eventContent); + sourceServicePtr->DScreenNotify(devId, eventCode, eventContent); } } } -- Gitee