修改FUZZ在asan版本下问题

Signed-off-by: kangchongtao <kangchongtao@huawei.com>
This commit is contained in:
kangchongtao 2023-08-24 09:27:57 +08:00
parent 204477879c
commit 11ef185aa8
2 changed files with 2 additions and 1 deletions

View File

@ -126,7 +126,7 @@ public:
decltype(cachedItems_) temp(std::move(cachedItems_));
for (auto& [oldindex, child] : temp) {
if (oldindex == index) {
if (static_cast<size_t>(oldindex) == index) {
node = child.second;
} else {
cachedItems_.try_emplace(

View File

@ -80,6 +80,7 @@ ohos_fuzztest("ImageLoaderFuzzTest") {
"$ace_root/frameworks/core/event/back_end_event_manager.cpp",
# mock
"$ace_root/frameworks/core/components_ng/test/mock/image_provider/mock_skia_image_data.cpp",
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_skia_image.cpp",
"$ace_root/test/mock/adapter/mock_file_uri_helper_ohos.cpp",