fix fuzz test

Signed-off-by: giteeOrange <zhuying79@huawei.com>
This commit is contained in:
giteeOrange 2024-09-25 09:34:09 +08:00
parent fbd20dd2ba
commit 9a7a7d88ee

View File

@ -690,10 +690,10 @@ void CheckWindowImplFunctionsPart7(sptr<WindowImpl> window, const uint8_t* data,
AvoidAreaType avoidAreaType = AvoidAreaType::TYPE_SYSTEM;
AvoidArea avoidArea;
startPos += GetObject<AvoidAreaType>(avoidAreaType, data + startPos, size - startPos);
startPos += GetObject<Rect>(avoidArea.topRect_, data + startPos, size - startPos);
startPos += GetObject<Rect>(avoidArea.leftRect_, data + startPos, size - startPos);
startPos += GetObject<Rect>(avoidArea.rightRect_, data + startPos, size - startPos);
startPos += GetObject<Rect>(avoidArea.bottomRect_, data + startPos, size - startPos);
startPos += GetObject<OHOS::Rosen::Rect>(avoidArea.topRect_, data + startPos, size - startPos);
startPos += GetObject<OHOS::Rosen::Rect>(avoidArea.leftRect_, data + startPos, size - startPos);
startPos += GetObject<OHOS::Rosen::Rect>(avoidArea.rightRect_, data + startPos, size - startPos);
startPos += GetObject<OHOS::Rosen::Rect>(avoidArea.bottomRect_, data + startPos, size - startPos);
window->GetAvoidAreaByType(avoidAreaType, avoidArea);
WindowGravity gravity = WindowGravity::WINDOW_GRAVITY_FLOAT;
uint32_t invalidGravityPercent = 0;