axmol/cocos
tyfkda aacec550c9 Fix out of range access in Label (#18789)
Out of range occurred in some condition
when using `Label` with its `getLetter()` member function.

`Label::recordPlaceholderInfo()` member function is called for
new line (\n) letter in `Label::multilineTextWrap()`,
but the function doesn't set `_lettersInfo[letterIndex].lineIndex`.

But `lineIndex` is used in `Label::updateLabelLetters()`
even if letter is new line.

This change checks `letterInfo.valid` to avoid
accessing `_linesOffsetX[letterInfo.lineIndex]`
for invalid (i.e. `NewLine`) letter.
2018-08-06 14:27:47 +08:00
..
2d Fix out of range access in Label (#18789) 2018-08-06 14:27:47 +08:00
3d fix reorder warning (#18819) 2018-05-14 10:34:56 +08:00
audio Added initialisation checks in pcm audio service (#18934) 2018-07-13 16:24:36 +08:00
base Fix include guard in CCEventListenerMouse.h (#18872) 2018-06-08 17:13:38 +08:00
deprecated beauty cmake format, reduce duplicate defines (#18799) 2018-05-02 15:33:01 +08:00
editor-support fix reorder warning (#18819) 2018-05-14 10:34:56 +08:00
math beauty cmake format, reduce duplicate defines (#18799) 2018-05-02 15:33:01 +08:00
navmesh beauty cmake format, reduce duplicate defines (#18799) 2018-05-02 15:33:01 +08:00
network Fix memory leaks (#18564) 2018-08-06 14:17:08 +08:00
physics fix typos and grammar in comments (#18853) 2018-05-30 20:41:59 +08:00
physics3d fix reorder warning (#18819) 2018-05-14 10:34:56 +08:00
platform disable auto URI encode in AsyncHttp client, fix #18949 (#18957) 2018-07-23 21:32:52 +08:00
renderer fix typos and grammar in comments (#18853) 2018-05-30 20:41:59 +08:00
scripting Lua: Optimize http header setting code (#18904) 2018-08-06 12:37:25 +08:00
storage beauty cmake format, reduce duplicate defines (#18799) 2018-05-02 15:33:01 +08:00
ui Update UIAbstractCheckButton.cpp (#18858) 2018-08-06 11:46:19 +08:00
vr fix reorder warning (#18819) 2018-05-14 10:34:56 +08:00
Android.mk add bullet include dir to cocos mk (#18774) 2018-04-19 09:27:15 +08:00
CMakeLists.txt beauty cmake format, reduce duplicate defines (#18799) 2018-05-02 15:33:01 +08:00
cc_dummy.c update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
cocos2d.cpp update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
cocos2d.h update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
precheader.cpp Speed up windows build (#18662) 2018-01-29 16:36:38 +08:00
precheader.h Speed up windows build (#18662) 2018-01-29 16:36:38 +08:00