summaryrefslogtreecommitdiff
path: root/python/types.py
diff options
context:
space:
mode:
authorJosh Watson <josh@joshwatson.com>2017-10-29 12:51:23 -0400
committerplafosse <peter@vector35.com>2017-10-29 12:51:23 -0400
commit75242aecc30c565ee56d3e74ec2e2dd502a6f073 (patch)
treef89ccecffa177d1aeef2e684f71ac6a15c9a7d60 /python/types.py
parent77e09a2d02efbb2d6aa9758b503e37cbe7655f7f (diff)
Fixed possible IndexError in Function.get_*_at methods (#775)
`Function.get_low_level_il_at` and `Function.get_lifted_il_at` methods could raise an IndexError because proper checking was not performed on the index returned by the core method that retrieves the IL instruction index of the requested instruction. The methods now check this value to see if it is equal to the length of the IL function, and if so, returns `None` instead. The onus of checking for `None` will be on the user, but at least they shouldn't have to wrap this in a try/except block anymore.
Diffstat (limited to 'python/types.py')
0 files changed, 0 insertions, 0 deletions