[SOUP] Certificate decoder always returns GByteArray with zero size
authoraperez@igalia.com <aperez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Nov 2018 16:37:29 +0000 (16:37 +0000)
committeraperez@igalia.com <aperez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Nov 2018 16:37:29 +0000 (16:37 +0000)
commitc75153b04d2b01bd05346cba56eca09cba9d228a
tree7f1dff8db7637d96b4ce6469091f0bdab595ef47
parentc7d5a39d138ffe09e60294e1f5805eb9e7dcb2d1
[SOUP] Certificate decoder always returns GByteArray with zero size
https://bugs.webkit.org/show_bug.cgi?id=191888

Reviewed by Žan Doberšek.

No new tests needed.

* platform/network/soup/CertificateInfo.h:
(WTF::Persistence::Coder<GRefPtr<GByteArray>>::decode): Add missing
call to g_byte_array_set_size() to make sure byteArray->len has the
correct value.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238417 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/network/soup/CertificateInfo.h