Fix crash seen in one of the regression tests.
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Feb 2011 20:57:54 +0000 (20:57 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Feb 2011 20:57:54 +0000 (20:57 +0000)
commit7c0bd5152b2dcd142a44c09951519fd014392517
tree54940590ff33641ce450533f1630d672cd432b6c
parentca249c5df5763fb284174317504fcd65e6667ba4
Fix crash seen in one of the regression tests.

Reviewed by Alexey Proskuryakov.

* platform/text/TextCodecUTF16.cpp:
(WebCore::TextCodecUTF16::decode): Handle case where we did not decode any new data,
we were not told to flush, and we had a buffered byte. The assertion here was incorrect,
and the correct thing to do is nothing.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@79477 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/text/TextCodecUTF16.cpp