projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[AT-SPI] Fixed uint underflow risk
[platform/core/uifw/dali-toolkit.git]
/
dali-toolkit
/
internal
/
controls
/
text-controls
/
text-field-impl.cpp
diff --git
a/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp
b/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp
index
1d79c5f
..
312a54e
100644
(file)
--- a/
dali-toolkit/internal/controls/text-controls/text-field-impl.cpp
+++ b/
dali-toolkit/internal/controls/text-controls/text-field-impl.cpp
@@
-1936,7
+1936,7
@@
Dali::Accessibility::Range TextField::AccessibleImpl::GetTextAtOffset(
if (boundary == Dali::Accessibility::TextBoundary::LINE)
counter++;
}
- if ((counter
- 1) == offset
)
+ if ((counter
> 0) && ((counter - 1) == offset)
)
{
range.content = txt.substr(start, index - start + 1);
range.startOffset = start;