mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-04 04:28:20 +00:00
Fix oobread crash in the rebasing method of dyldcache ##bin
This commit is contained in:
parent
74ff989031
commit
cc85cbe297
@ -1370,7 +1370,7 @@ static void rebase_bytes_v2(RDyldRebaseInfo2 *rebase_info, ut8 *buf, ut64 offset
|
||||
ut32 delta = 1;
|
||||
while (delta) {
|
||||
ut64 position = in_buf + first_rebase_off - page_offset;
|
||||
if (position >= count) {
|
||||
if (position + 8 >= count) {
|
||||
break;
|
||||
}
|
||||
ut64 raw_value = r_read_le64 (buf + position);
|
||||
|
Loading…
x
Reference in New Issue
Block a user