r78499 causes assertion failure in http/tests/xmlhttprequest/cache-override.html
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Feb 2011 11:03:26 +0000 (11:03 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Feb 2011 11:03:26 +0000 (11:03 +0000)
commit9710cb24403b696a74efe51e6bf2c018aaccea64
treefdbded4d0974a7dd180eb5644502eb7632f080a4
parent84c639ddb26615fa2250eabe9ebe4cbd07c11a16
r78499 causes assertion failure in http/tests/xmlhttprequest/cache-override.html
https://bugs.webkit.org/show_bug.cgi?id=54418

Reviewed by Andreas Kling.

Check for zero buffer length.

* platform/text/TextCodecUTF8.cpp:
(WebCore::TextCodecUTF8::decode):

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