projects
/
platform
/
framework
/
native
/
uifw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a24025f
)
Unchecked GetCharacter func when index is over string length
author
cheun.hong
<cheun.hong@samsung.com>
Tue, 1 Oct 2013 07:57:10 +0000
(16:57 +0900)
committer
cheun.hong
<cheun.hong@samsung.com>
Tue, 1 Oct 2013 07:57:10 +0000
(16:57 +0900)
Change-Id: Ib4b027d7a00e435810cc3c03380eaa9a607f18b4
Signed-off-by: cheun.hong <cheun.hong@samsung.com>
src/graphics/text/FGrp_TextTextComposite.cpp
patch
|
blob
|
history
diff --git
a/src/graphics/text/FGrp_TextTextComposite.cpp
b/src/graphics/text/FGrp_TextTextComposite.cpp
index
0a37e5a
..
7fbfcc3
100644
(file)
--- a/
src/graphics/text/FGrp_TextTextComposite.cpp
+++ b/
src/graphics/text/FGrp_TextTextComposite.cpp
@@
-4667,7
+4667,7
@@
TextComposite::ComposeInWrapInSweepMode(FloatRectangle& rect)
}
if ((__frontSpaceHideMode == TEXT_OBJECT_SPACE_HIDE_TYPE_ONE) &&
- (GetCharacter(textIndex+textCount) == ' '))
+ (
textIndex+textCount < __length) && (
GetCharacter(textIndex+textCount) == ' '))
{
textCount++;
}