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

Julian Waters jwaters at openjdk.org
Thu Aug 11 19:31:06 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.

This pull request has now been integrated.

Changeset: 3d20a8b2
Author:    Julian Waters <jwaters at openjdk.org>
Committer: Phil Race <prr at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3d20a8b20a636e4c11ad1568b011191726b45b90
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

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

Reviewed-by: prr

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

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



More information about the client-libs-dev mailing list