RFR: 8287609: Add null-check for tagsArray returned from CTFontCopyAvailableTables
Nikita Gubarkov
duke at openjdk.java.net
Tue May 31 23:45:12 UTC 2022
`CTFontCopyAvailableTables` can return null, which causes subsequent call to `CFArrayGetCount` to crash with SEGFAULT, just added a null-check.
-------------
Commit messages:
- 8287609: Add null-check for tagsArray returned from CTFontCopyAvailableTables
Changes: https://git.openjdk.java.net/jdk/pull/8962/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8962&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8287609
Stats: 3 lines in 1 file changed: 3 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/8962.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/8962/head:pull/8962
PR: https://git.openjdk.java.net/jdk/pull/8962
More information about the client-libs-dev
mailing list