Unchecked GetCharacter func when index is over string length
authorcheun.hong <cheun.hong@samsung.com>
Tue, 1 Oct 2013 07:57:10 +0000 (16:57 +0900)
committercheun.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

index 0a37e5a..7fbfcc3 100644 (file)
@@ -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++;
                        }