Fix possible crash/assertion in qt_fontHasNarrowOutlines()
authorKonstantin Ritt <ritt.ks@gmail.com>
Fri, 16 Nov 2012 18:44:12 +0000 (20:44 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 21 Nov 2012 10:03:48 +0000 (11:03 +0100)
commitf4a2352cd1efee9bbffe89e7d430b8be0cacc5bd
tree26fed6c9ca89e0d1663aaebe6a69bb0dfe3bf4fd
parentcc7d085ca21bff029e1a67b92b4facebfdc51c6f
Fix possible crash/assertion in qt_fontHasNarrowOutlines()

1. cloneWithSize() may return 0
1bis. QRawFont::setPixelSize() may ivalidate the font (due to 1.)
2. using the data obtained from a temporary QString is never safe!

Change-Id: I0cd5f807d8077ef5112704e475f1904bd6fc4b1b
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/gui/text/qdistancefield.cpp