QFontEngineMulti: Fix possible crash in stringToCMap()
authorKonstantin Ritt <ritt.ks@gmail.com>
Mon, 29 Oct 2012 10:03:34 +0000 (12:03 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 29 Oct 2012 19:31:08 +0000 (20:31 +0100)
commit7aa0adf130447214ff3a7bb8144d35b366e94d77
treed11ef569be3943562d779e31d525c580906c6966
parentc21564b1ef2fe7959907ef9fefe44fad58738710
QFontEngineMulti: Fix possible crash in stringToCMap()

in case when the layout is partially initialized.
We shouldn't access any data except of indices
if GlyphIndicesOnly flag has been passed in.

Change-Id: I264689b498e0f9de8b5c040d47dbae4f6ef391c4
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/gui/text/qfontengine.cpp
tests/auto/gui/text/qfontmetrics/qfontmetrics.pro
tests/auto/gui/text/qfontmetrics/tst_qfontmetrics.cpp