Fix libutils_fuzz_string8 deadlock.

Bug: 290835996
Test: libutils_fuzz_string8 for several minutes
Change-Id: I9b312dd968c380f4fa2a837d38121d0a7a7ac7b1
This commit is contained in:
Steven Moreland 2023-07-13 21:19:50 +00:00
parent 740c0d274c
commit 749becfa68
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ std::vector<std::function<void(FuzzedDataProvider*, android::String8*, android::
str1->toLower();
},
[](FuzzedDataProvider*, android::String8* str1, android::String8* str2) -> void {
if (str2->size() == 0) return;
str1->removeAll(str2->c_str());
},
[](FuzzedDataProvider*, android::String8* str1, android::String8* str2) -> void {