Fix potential access beyond the array end
authorKonstantin Ritt <ritt.ks@gmail.com>
Fri, 25 May 2012 03:23:15 +0000 (06:23 +0300)
committerQt by Nokia <qt-info@nokia.com>
Fri, 25 May 2012 15:23:20 +0000 (17:23 +0200)
commit79ab7c170d8c6b6d3b148f983121717e71fefeea
tree75e232f6a6b8266c8687e4103790d6397b443b47
parenta755049931031d7e234ba157c960e7cf96489b2a
Fix potential access beyond the array end

addNextCluster() advances position up to "end" that equals to
eng->layoutData->string.length() if current script item is the last one

Change-Id: I173286f3002c9c64dd1a89b902958699b6273d68
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/gui/text/qtextlayout.cpp