summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/cocoa
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2013-08-15 09:13:55 +0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-15 20:47:38 +0200
commita15b56b0c1eae0d368c16be2d81bba11cb1faee7 (patch)
treedccc19cab861b6f99ce55b0172a103c56e0bec91 /src/plugins/platforms/cocoa
parent751989df5cc441dcffbbbe2da0c3c0558701d5c6 (diff)
Fix possible crash due to integer overflow
QFontEngineMulti::stringToCMap() stores the fallback engine index in a glyph index'es high byte, which means the maximum fallback engine index it can store is 255, so limit the number of tries we're doing to this value. Otherwise we could end up with `fontEngineMulti->engine(glyph >> 24) == 0` after successful stringToCMap() call. Task-number: QTBUG-30412 Change-Id: I06907a39186fd207f3ce4b732a1a54e615744082 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/plugins/platforms/cocoa')
0 files changed, 0 insertions, 0 deletions