5

Fix #932,#788: fix command parsing by disconnect3d · Pull Request #974 · pwndbg/...

 2 years ago
source link: https://github.com/pwndbg/pwndbg/pull/974
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation

When we moved to argparse command parsing we introduced gdb_sloppy_parse which wasn't perfect: e.g. for gdb.parse_and_eval("__libc_start_main") would return a gdb.Value() whose .type.name was long long.

As a result when code that used gdb_sloppy_parse then casted the result to int(gdb_value) it crashed because for some reason GDB errored.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK