Integrated: 8345632: [ASAN] memory leak in get_numbered_property_as_sorted_string function

SendaoYan syan at openjdk.org
Mon Dec 9 03:41:41 UTC 2024


On Fri, 6 Dec 2024 04:39:51 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> This PR fix memory leak problem in get_numbered_property_as_sorted_string function which introduced by [JDK-8342089](https://bugs.openjdk.org/browse/JDK-8342089) when the function get_numbered_property_as_sorted_string `return nullptr`. Avoid strdup in the empty string case, risk is low.
> 
> Additional testing:
> 
> - [x] jtreg tests (include tier1/2/3 etc.) on linux-x64
> - [x] jtreg tests (include tier1/2/3 etc.) on linux-aarch64

This pull request has now been integrated.

Changeset: 69e664de
Author:    SendaoYan <syan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/69e664de14d1f9d66447937d494da8bf971ac5fe
Stats:     2 lines in 1 file changed: 0 ins; 1 del; 1 mod

8345632: [ASAN] memory leak in get_numbered_property_as_sorted_string function

Reviewed-by: ccheung, dholmes

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

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


More information about the hotspot-runtime-dev mailing list