Integrated: 8275846: read_base_archive_name() could read past the end of buffer
Ioi Lam
iklam at openjdk.java.net
Sun Nov 7 21:42:38 UTC 2021
On Fri, 5 Nov 2021 20:11:10 GMT, Ioi Lam <iklam at openjdk.org> wrote:
> Please review this small fix for an intermittent crash in `FileHeaderHelper::read_base_archive_name()`. The crash happens if a string stored inside a CDS dynamic archive is not zero-terminated.
>
> The fix is to check for zero-termination, and that the actual string length matches with the the recorded length.
>
> This fix was authored by @yqi in PR #5997 , but that PR may take longer to integrate than expected. So let's fix the crash first.
This pull request has now been integrated.
Changeset: 88491549
Author: Ioi Lam <iklam at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/884915496f7bfe754279f1644603131c64f192b3
Stats: 40 lines in 2 files changed: 23 ins; 0 del; 17 mod
8275846: read_base_archive_name() could read past the end of buffer
Reviewed-by: ccheung, stuefe
-------------
PR: https://git.openjdk.java.net/jdk/pull/6285
More information about the hotspot-runtime-dev
mailing list