Skip to content

Correctly parse offset from info proc mappings output (#1096) (#1098) #258

Correctly parse offset from info proc mappings output (#1096) (#1098)

Correctly parse offset from info proc mappings output (#1096) (#1098) #258

Triggered via push May 19, 2024 03:39
Status Success
Total duration 15s
Artifacts

notify.yml

on: push
discord
7s
discord
Fit to window
Zoom out
Zoom in

Annotations

2 warnings
discord
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, sarisia/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
discord
embed description must be shorter than 2048, got 2136 **Commits**: ● Correctly parse offset from `info proc mappings` output (#1096) (#1098) ## Description Fix the Offset column in the `vmmap` command by getting the offset from the correct column in `parse_gdb_info_proc_maps`. Before: ``` gef➤ vmmap [ Legend: Code | Heap | Stack ] Start End Offset Perm Path 0x0000555555554000 0x0000555555558000 0x0000000000004000 r-- /usr/bin/ls 0x0000555555558000 0x000055555556e000 0x0000000000016000 r-x /usr/bin/ls 0x000055555556e000 0x0000555555577000 0x0000000000009000 r-- /usr/bin/ls 0x0000555555577000 0x0000555555579000 0x0000000000002000 r-- /usr/bin/ls 0x0000555555579000 0x000055555557a000 0x0000000000001000 rw- /usr/bin/ls 0x000055555557a000 0x000055555557b000 0x0000000000001000 rw- [heap] ``` After: ``` gef➤ vmmap [ Legend: Code | Heap | Stack ] Start End Offset Perm Path 0x0000555555554000 0x0000555555558000 0x0000000000000000 r-- /usr/bin/ls 0x0000555555558000 0x000055555556e000 0x0000000000004000 r-x /usr/bin/ls 0x000055555556e000 0x0000555555577000 0x000000000001a000 r-- /usr/bin/ls 0x0000555555577000 0x0000555555579000 0x0000000000023000 r-- /usr/bin/ls 0x0000555555579000 0x000055555557a000 0x0000000000025000 rw- /usr/bin/ls 0x000055555557a000 0x000055555557b000 0x0000000000000000 rw- [heap] ``` info proc mappings: ``` gef➤ info proc mappings process 18800 Mapped address spaces: Start Addr End Addr Size Offset Perms objfile 0x555555554000 0x555555558000 0x4000 0x0 r--p /usr/bin/ls 0x555555558000 0x55555556e000 0x16000 0x4000 r-xp /usr/bin/ls 0x55555556e000 0x555555577000 0x9000 0x1a000 r--p /usr/bin/ls 0x555555577000 0x555555579000 0x2000 0x23000 r--p /usr/bin/ls 0x555555579000 0x55555557a000 0x1000 0x25000 rw-p /usr/bin/ls 0x55555557a000 0x55555557b000 0x1000 0x0 rw-p [heap] ``` --- [Open Diff View](https://github.com/hugsy/gef/compare/18c1f7c433e3...13d1de2dc3db)