mirror of https://github.com/pwndbg/pwndbg.git
Fix deference-limit changes not being reflected due to an early cast to int() (#2422)
* Added types to hexdump()'s parameters * hexdump(): upgraded format strings to f-strings, while fixing the offset when data is empty * hexdump(): offset is now correctly computed and updated accross repeated calls to hexdump. This fixes two bugs: 1. Offset was increased by the number of lines displayed by the hexdump() command, which was incorrect, as some lines may be compressed; 2. When dumping a number of bytes that is not divisible by the number of bytes per line, offset would be incorrectly updated. * Linter * hexdump: fixed type of retrieved config entry hexdump_group_use_big_endian * Fixed test_hexdump_saved_address_and_offset test to account for random stack address * Upgraded the linked-lists.c test program to 6 items in order to test the "deference-limit" setting * Chain: changes to the deference-limit parameter were not reflected in the program due to an early cast to int() * Linterpull/2423/head
parent
94f82fff79
commit
d65d5814c5
Loading…
Reference in new issue