RFR: 8302671: libawt has a memmove decay error

Laurent Bourgès lbourges at openjdk.org
Fri Feb 17 14:58:50 UTC 2023


On Thu, 16 Feb 2023 15:33:51 GMT, Julian Waters <jwaters at openjdk.org> wrote:

> In libawt, the size parameter is issued by a sizeof on an array, which as expected decays into a pointer and breaks the cleanup code by giving the incorrect size

Or use #define KBD_BUF_LEN 256
And use it explicitely in array init & memmove... as plain old C.

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

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



More information about the client-libs-dev mailing list