RFR: 8291959: FileFontStrike#initNative does not properly initialize IG Table on Windows
Phil Race
prr at openjdk.org
Fri Aug 5 17:49:04 UTC 2022
On Fri, 5 Aug 2022 09:46:13 GMT, Julian Waters <jwaters at openjdk.org> wrote:
> 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.
Marked as reviewed by prr (Reviewer).
-------------
PR: https://git.openjdk.org/jdk/pull/9772
More information about the client-libs-dev
mailing list