Skip to content

Commit ef68537

Browse files
committed
remove cpp change
1 parent 2c2d189 commit ef68537

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

icu4c/source/test/fuzzer/fuzzer_driver.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212

1313
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size);
1414

15-
constexpr size_t kFuzzerTestDataSizeLimit = 32 * 1024; // Limit to 32K bytes
16-
1715
int main(int argc, char* argv[])
1816
{
1917
bool show_warning = true;
@@ -54,11 +52,7 @@ int main(int argc, char* argv[])
5452
}
5553
std::ostringstream ostrm;
5654
ostrm << file.rdbuf();
57-
size_t data_size = ostrm.str().size();
58-
if (data_size > kFuzzerTestDataSizeLimit) {
59-
data_size = kFuzzerTestDataSizeLimit;
60-
}
61-
LLVMFuzzerTestOneInput(reinterpret_cast<const uint8_t*>(ostrm.str().c_str()), data_size);
55+
LLVMFuzzerTestOneInput(reinterpret_cast<const uint8_t*>(ostrm.str().c_str()), ostrm.str().size());
6256

6357
return 0;
6458
}

0 commit comments

Comments
 (0)