RFR: 8287609: Add null-check for tagsArray returned from CTFontCopyAvailableTables
Phil Race
prr at openjdk.java.net
Wed Jun 1 04:36:36 UTC 2022
On Tue, 31 May 2022 23:39:09 GMT, Nikita Gubarkov <duke at openjdk.java.net> wrote:
> `CTFontCopyAvailableTables` can return null, which causes subsequent call to `CFArrayGetCount` to crash with SEGFAULT, just added a null-check.
Where do you read it can return null ?
https://developer.apple.com/documentation/coretext/1510774-ctfontcopyavailabletables?language=objc
says nothing ..
-------------
PR: https://git.openjdk.java.net/jdk/pull/8962
More information about the client-libs-dev
mailing list