mirror of
https://gitee.com/openharmony/startup_appspawn
synced 2024-11-23 15:10:44 +00:00
fix: 修改不规范fuzz用例
Signed-off-by: fan-jingle <fanjingle@h-partners.com>
This commit is contained in:
parent
6584f49567
commit
67904dc4f8
@ -282,7 +282,7 @@ namespace OHOS {
|
|||||||
|
|
||||||
int FuzzGetPermissionByIndex(const uint8_t *data, size_t size)
|
int FuzzGetPermissionByIndex(const uint8_t *data, size_t size)
|
||||||
{
|
{
|
||||||
int32_t index = static_cast<int32_t>(size);
|
int32_t index = *(reinterpret_cast<const int32_t*>(data));
|
||||||
if (GetPermissionByIndex(nullptr, index) == nullptr) {
|
if (GetPermissionByIndex(nullptr, index) == nullptr) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user