RFR: 8357468: [asan] heap buffer overflow reported in PcDesc::pc_offset() pcDesc.hpp:57
Tobias Hartmann
thartmann at openjdk.org
Fri May 23 06:50: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].
Looks good to me too.
-------------
Marked as reviewed by thartmann (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/25404#pullrequestreview-2863375804
More information about the hotspot-compiler-dev
mailing list