2010-11-29 Jan Erik Hanssen <jhanssen@sencha.com>
authorcommit-queue <commit-queue@webkit.org>
Mon, 29 Nov 2010 12:05:56 +0000 (12:05 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 13 Dec 2010 18:59:07 +0000 (15:59 -0300)
commit6aef00a1c7b6aaba9ac32d110f3732c36bc70e5d
treeef3f2703b4dc166f456867d0bef03ea1b2de91e5
parent78d2e820d0d71aa3640d77d8a34e300bdf5b1ee4
2010-11-29  Jan Erik Hanssen  <jhanssen@sencha.com>

        Reviewed by Kenneth Rohde Christiansen.

        QtWebKit asserts when selecting elided text.
        https://bugs.webkit.org/show_bug.cgi?id=45391

        Ensure that the length passed to fromRawDataWithoutRef() does
        not exceed the length of the string.

        * platform/graphics/qt/FontQt.cpp:
        (WebCore::Font::selectionRectForSimpleText):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72788 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/graphics/qt/FontQt.cpp