Integrated: JDK-8259843: initialize dli_fname array before calling dll_address_to_library_name
Matthias Baesken
mbaesken at openjdk.java.net
Wed Jan 20 15:11:52 UTC 2021
On Tue, 19 Jan 2021 12:08:05 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> On some platforms like bsd/mac, we call dll_address_to_library_name with a buffer parameter (e.g. char dli_fname[MAXPATHLEN]; ) that has uninitialized content.
> This is usually no problem because dll_address_to_library_name fills the array, but on some codepaths it seems not to be the case.
>
> See also this related sonar issue :
> https://sonarcloud.io/project/issues?id=jdk&open=AXaE0drk8L9hkQskGEXZ&resolved=false&types=BUG
This pull request has now been integrated.
Changeset: 69f90b5f
Author: Matthias Baesken <mbaesken at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/69f90b5f
Stats: 11 lines in 4 files changed: 6 ins; 0 del; 5 mod
8259843: initialize dli_fname array before calling dll_address_to_library_name
Reviewed-by: lucy, dholmes
-------------
PR: https://git.openjdk.java.net/jdk/pull/2144
More information about the hotspot-dev
mailing list