RFR: 8287609: macOS: SIGSEGV at [CoreFoundation] CFArrayGetCount / sun.font.CFont.getTableBytesNative

Phil Race prr at openjdk.java.net
Fri Jun 3 20:50:42 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.

Marked as reviewed by prr (Reviewer).

oh my gosh .. it is a font designed for PRE-macOSX . meaning mac. so it is an ATM font with a resource fork and current macOS
still lets you install it which is a real surprise to me. That's why there are no tables. 
OK I can see why this fix is needed

-------------

PR: https://git.openjdk.java.net/jdk/pull/8962



More information about the client-libs-dev mailing list