Integrated: 8357468: [asan] heap buffer overflow reported in PcDesc::pc_offset() pcDesc.hpp:57

Dean Long dlong at openjdk.org
Fri May 23 19:31:57 UTC 2025


On Thu, 22 May 2025 23:43:09 GMT, Dean Long <dlong at openjdk.org> wrote:

> This appears to be mostly harmless, but we should fix it anyway.  The initial sentinel PcDesc has a pc_offset of -1.  We can prevent looking before the sentinel by reversing the condition so that pc[0] is checked before pc[-1].

This pull request has now been integrated.

Changeset: 66747710
Author:    Dean Long <dlong at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/66747710a49ea6a78aee94d3a3ec6a24b7cc36e5
Stats:     3 lines in 1 file changed: 2 ins; 0 del; 1 mod

8357468: [asan] heap buffer overflow reported in PcDesc::pc_offset() pcDesc.hpp:57

Reviewed-by: kvn, thartmann

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

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


More information about the hotspot-compiler-dev mailing list