RFR: 8291959: FileFontStrike#initNative does not properly initialize IG Table on Windows

Julian Waters jwaters at openjdk.org
Fri Aug 5 09:58:05 UTC 2022


FileFontStrike#initNative calls memset with LCDLUTCOUNT (the maximum length) as the number of bytes to zero out, which is incorrect as the elements are not 1 byte in size (unsigned char*), and will result in only part of the IG Table being correctly zeroed. This is more correctly resolved by passing sizeof igLUTable to memset instead.

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

Commit messages:
 - Pass proper byte size to memset

Changes: https://git.openjdk.org/jdk/pull/9772/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9772&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8291959
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/9772.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9772/head:pull/9772

PR: https://git.openjdk.org/jdk/pull/9772



More information about the client-libs-dev mailing list