mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Replace all locale-dependent operations with locale-agnostic counterparts
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
|
||||
#include <libsolutil/CommonIO.h>
|
||||
#include <libsolutil/CommonData.h>
|
||||
#include <libsolutil/StringUtils.h>
|
||||
|
||||
#include <test/tools/ossfuzz/yulFuzzerCommon.h>
|
||||
|
||||
@@ -53,7 +54,7 @@ extern "C" int LLVMFuzzerTestOneInput(uint8_t const* _data, size_t _size)
|
||||
string input(reinterpret_cast<char const*>(_data), _size);
|
||||
|
||||
if (std::any_of(input.begin(), input.end(), [](char c) {
|
||||
return ((static_cast<unsigned char>(c) > 127) || !(std::isprint(c) || (c == '\n') || (c == '\t')));
|
||||
return ((static_cast<unsigned char>(c) > 127) || !(isPrint(c) || (c == '\n') || (c == '\t')));
|
||||
}))
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user