Skip to content

分类专题pwnlinux堆利用(二)的overlapping_chunks有个错误? #50

@Nyakahashi

Description

@Nyakahashi

overlapping_chunks示例代码中的
fprintf(stderr, "p4: %p ~ %p\n", p4, p4+evil_region_size);
fprintf(stderr, "p3: %p ~ %p\n", p3, p3+0x80);
显示的四个地址没有做类型转换导致显示出来的地址范围很大
p4: 0x1e2b0a0 ~ 0x1e2b8e0
p3: 0x1e2b130 ~ 0x1e2b530
how2heap中的代码是有做类型转换的
fprintf(stderr, "\np4 has been allocated at %p and ends at %p\n", (char *)p4, (char *)p4+evil_region_size);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions