Fix ASAN heap-buffer-overflow issue on GetNaturalSize() 84/276284/1
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 14 Jun 2022 04:15:12 +0000 (13:15 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Tue, 14 Jun 2022 04:30:36 +0000 (13:30 +0900)
commit006d93f5ae9e54467d963389642b8a37f8ed0d63
tree713874130d4d88ae1c4ccf5301182b6e87e04363
parent07965d09740df90c631007ebc3b4be30e074ecd7
Fix ASAN heap-buffer-overflow issue on GetNaturalSize()

CSharp_Dali_Actor_GetSuggestedMinimumWidth/Height calls
GetNaturalSize().
This causes ASAN heap-buffer-overflow issue when
SwigDirector_ViewWrapperImpl::GetNaturalSize() is called.

In SwigDirector_ViewWrapperImpl::GetNaturalSize(), type casting from
Dali::Vector2 to Dali::Vector3 is done so it causes ASAN
heap-buffer-overflow issue.

Not to cause ASAN heap-buffer-overflow issue, casting Dali::Vector2 and
assigning it to Dali::Vector3 is required.

Change-Id: I1a85da7440c517f5cd27c32b535359d670b57655
dali-csharp-binder/src/view-wrapper-impl-wrap.cpp