Integrated: JDK-8263557: Possible NULL dereference in Arena::destruct_contents()

Thomas Stuefe stuefe at openjdk.java.net
Tue Mar 16 05:53:08 UTC 2021


On Sun, 14 Mar 2021 06:07:00 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> Sonarcloud reports a possible access to a NULL C++ object in Arena::destruct_contents():
> 
> _first->chop();
> 
> I have found no code path where this could happen but _first could conceivably be NULL after a call to Arena::reset(). Lets fix that.
> 
> GA test error on windows seems unrelated.

This pull request has now been integrated.

Changeset: c484d890
Author:    Thomas Stuefe <stuefe at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/c484d890
Stats:     3 lines in 1 file changed: 2 ins; 0 del; 1 mod

8263557: Possible NULL dereference in Arena::destruct_contents()

Reviewed-by: kbarrett, coleenp

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

PR: https://git.openjdk.java.net/jdk/pull/2994


More information about the hotspot-runtime-dev mailing list