mirror of
https://gitee.com/openharmony/filemanagement_storage_service
synced 2024-11-23 06:59:59 +00:00
update test/fuzztest/fileutils_fuzzer/fileutils_fuzzer.cpp.
Signed-off-by: zhuhongtao666 <zhuhongtao12@huawei.com>
This commit is contained in:
parent
fcbb070e85
commit
05fb526068
@ -20,7 +20,7 @@
|
||||
namespace OHOS {
|
||||
bool FileUtilFuzzTest(const uint8_t *data, size_t size)
|
||||
{
|
||||
if ((data == nullptr) || (size <= 0)) {
|
||||
if ((data == nullptr) || (size <= sizeof(uint32_t))) {
|
||||
return false;
|
||||
}
|
||||
unsigned int ustate = *(reinterpret_cast<const unsigned int *>(data));
|
||||
|
Loading…
Reference in New Issue
Block a user