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

Dean Long dlong at openjdk.org
Fri May 23 01:51:50 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].

Thanks Vladimir.

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

PR Comment: https://git.openjdk.org/jdk/pull/25404#issuecomment-2903029898


More information about the hotspot-compiler-dev mailing list