[Win] Hardening of getLinkedFonts function.
authorpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Aug 2016 09:43:04 +0000 (09:43 +0000)
committerpvollan@apple.com <pvollan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 16 Aug 2016 09:43:04 +0000 (09:43 +0000)
commitf2cb1bd456e31071cedf56eca23e7c9606eb0a92
treeb7cf16ab8e9a42ede7f6667e5ba580f697a0f5cd
parentcd0c3f80d20306bd8a67668cbffeb907211b1eca
[Win] Hardening of getLinkedFonts function.
https://bugs.webkit.org/show_bug.cgi?id=160850

The SUCCEEDED macro should only be used for functions returning a HRESULT type.
Also, make sure a string array index will not exceed the string length.

* platform/graphics/win/FontCacheWin.cpp:
(WebCore::getLinkedFonts):

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