Integrated: JDK-8262472: Buffer overflow in UNICODE::as_utf8 for zero length output buffer
Thomas Stuefe
stuefe at openjdk.java.net
Tue Mar 2 04:31:46 UTC 2021
On Fri, 26 Feb 2021 17:47:12 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> This one is trivial and probably inconsequential, but lets fix it anyway.
>
> There is a buffer overflow in both variants of UNICODE::as_utf8, where in case of truncation due to a zero length output buffer the terminating zero still gets written.
>
> Added fix + gtest. Ran gtest.
This pull request has now been integrated.
Changeset: f5ab7f68
Author: Thomas Stuefe <stuefe at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/f5ab7f68
Stats: 58 lines in 2 files changed: 57 ins; 0 del; 1 mod
8262472: Buffer overflow in UNICODE::as_utf8 for zero length output buffer
Reviewed-by: dholmes, iklam
-------------
PR: https://git.openjdk.java.net/jdk/pull/2753
More information about the hotspot-dev
mailing list