[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    RFR: 8287609: Add null-check for tagsArray returned from CTFontCopyAvailableTables
From:       Nikita Gubarkov <duke () openjdk ! java ! net>
Date:       2022-05-31 23:45:12
Message-ID: defHaUTl3hgK9Dw_CtFZwPAgHAl_dkDZZ3_2xOBoKwo=.6ee11742-2b04-47d2-9c62-62d93e58bae3 () github ! com
[Download RAW message or body]

`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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic