SharedBuffer::copy is not computing the buffer size correctly when having m_dataArray
authoryouenn.fablet@crf.canon.fr <youenn.fablet@crf.canon.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Apr 2015 17:45:27 +0000 (17:45 +0000)
committeryouenn.fablet@crf.canon.fr <youenn.fablet@crf.canon.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 28 Apr 2015 17:45:27 +0000 (17:45 +0000)
commit9740379c45d8f9b3bfae17fcc9612bd06c226e71
tree245c104814a4ea301dbc0856da3ae20f0231b376
parentf248c761743df901079899f2189dc5b0ea78babc
SharedBuffer::copy is not computing the buffer size correctly when having m_dataArray
https://bugs.webkit.org/show_bug.cgi?id=144321

Reviewed by Darin Adler.

Patch correctness covered by existing tests.

* platform/SharedBuffer.cpp:
(WebCore::SharedBuffer::copy): Direct appending to m_dataArray and not using append method as this method updates the SharedBuffer size.

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