summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-03-11 08:58:26 -0500
committerdusoleil <howcansocksbereal@gmail.com>2023-03-14 16:10:47 -0400
commit88fb92aa6cfdcc35f9baa9fd9bcc7c1e7ebfc3cb (patch)
tree662b2b17c11245ce264a3553df3b26a175198be0 /.gitignore
parente568900727d1f6eb47d92d49ee746abf099a7854 (diff)
downloadsploit-88fb92aa6cfdcc35f9baa9fd9bcc7c1e7ebfc3cb.tar.gz
sploit-88fb92aa6cfdcc35f9baa9fd9bcc7c1e7ebfc3cb.zip
symtbl: Overload __getitem__ for translating raw offsets
Can now use Symtbl subscript syntax to obtain the mapped address of a foreign offset (not a defined symbol) without having to modify the object or add a new symbol entry. Assuming a base value of 10, tbl[15] will return 25, for example. We now assert that the defined table keys are strings, to prevent the creation of entries that are now un-readable by this patch. However, this always should have been the case. Signed-off-by: Malfurious <m@lfurio.us> Signed-off-by: dusoleil <howcansocksbereal@gmail.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions