mirror of https://github.com/pwndbg/pwndbg.git
command robustness improvements and graceful errors (#185)
* search: fix --word -2 param and allow --short in reflect to --type short Search failed when using the --word (-2) parameter as 'word' was not found in the type lookup. Using 'word' instead of 'short' seems to be the better option as that matches better in this context. * search: more robust and graceful error messages for invalid input This makes error messages for wrong input more graceful instead of dying and printing an ugly full traceback exception. * harden hexdump and telescope commands against malformed arguments * only allow retaddr and canary commands when in running mode * xor: gracefully complain on invalid memory address * next: check if proc is alive while continuing to avoid exceptions If the program terminates while we are still looping/continuing for the according next command, then an internal gdb.error is thrown as the program is not being run. We avoid such situations by adding the proc.alive to the looping conditions. * memory: force write_memory to be bytes for python2 gdb * catch general gdb.error instead of specific gdb.MemoryErrorpull/189/head
parent
1869b8a8a3
commit
433bf23177
Loading…
Reference in new issue