mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-20 12:53:29 +00:00
8357468: [asan] heap buffer overflow reported in PcDesc::pc_offset() pcDesc.hpp:57
Reviewed-by: kvn, thartmann
This commit is contained in:
parent
236e1b6d52
commit
66747710a4
@ -393,7 +393,9 @@ static inline bool match_desc(PcDesc* pc, int pc_offset, bool approximate) {
|
||||
if (!approximate) {
|
||||
return pc->pc_offset() == pc_offset;
|
||||
} else {
|
||||
return (pc-1)->pc_offset() < pc_offset && pc_offset <= pc->pc_offset();
|
||||
// Do not look before the sentinel
|
||||
assert(pc_offset > PcDesc::lower_offset_limit, "illegal pc_offset");
|
||||
return pc_offset <= pc->pc_offset() && (pc-1)->pc_offset() < pc_offset;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user