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

Vladimir Kozlov kvn at openjdk.org
Fri May 23 00:42:51 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].

Good

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

Marked as reviewed by kvn (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/25404#pullrequestreview-2862889558


More information about the hotspot-compiler-dev mailing list