[Tizen] Avoid integer overflow in cursor helper functions 95/268795/1 accepted/tizen/unified/20220106.124740 submit/tizen/20220105.081443
authorBowon Ryu <bowon.ryu@samsung.com>
Mon, 3 Jan 2022 04:54:03 +0000 (13:54 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Mon, 3 Jan 2022 06:36:14 +0000 (15:36 +0900)
commit6562da0c1ece740196526671ebbdf8c642e1e694
treebbdc36171fc9a321df462aa7923071da60b2ccba
parent8a7ee73ded5a5a98279e5c6f9b0587a38781337a
[Tizen] Avoid integer overflow in cursor helper functions

Since index is uint, it can causes problems if totalNumberOfCharacters is 0.

Change-Id: I3a815474a42ddea9f02ab1e358f7edf8ec0f8dac
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
dali-toolkit/internal/text/cursor-helper-functions.cpp