mirror of
https://gitee.com/openharmony/filemanagement_storage_service
synced 2024-11-23 06:59:59 +00:00
update test/fuzztest/stringutils_fuzzer/stringutils_fuzzer.cpp.
Signed-off-by: zhuhongtao666 <zhuhongtao12@huawei.com>
This commit is contained in:
parent
0726cabab6
commit
73c0d7a01c
@ -21,7 +21,7 @@
|
||||
namespace OHOS {
|
||||
bool StringUtilsFuzzTest(const uint8_t *data, size_t size)
|
||||
{
|
||||
if ((data == nullptr) || (size <= 0)) {
|
||||
if ((data == nullptr) || (size <= sizeof(string))) {
|
||||
return false;
|
||||
}
|
||||
std::string metaData(reinterpret_cast<const char *>(data), size);
|
||||
|
Loading…
Reference in New Issue
Block a user