From 43f69825c994ebf008e495a24426ed273c5cc747 Mon Sep 17 00:00:00 2001 From: Adam Doupe Date: Wed, 30 Jun 2021 22:34:25 -0400 Subject: [PATCH] Fix broken leakfind command Because of the previous commit to this file that removed `from queue import *`, the `address_queue` on line 96 would fail by throwing an exception when running `leakfind`. This commit adds back the required `import queue` and fixes the reference to `Queue` on line 96. --- pwndbg/commands/leakfind.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pwndbg/commands/leakfind.py b/pwndbg/commands/leakfind.py index 939f2a3d8..0332dcfc2 100644 --- a/pwndbg/commands/leakfind.py +++ b/pwndbg/commands/leakfind.py @@ -5,6 +5,7 @@ Find a chain of leaks given some starting address. """ import argparse +import queue import gdb @@ -92,7 +93,7 @@ def leakfind(address=None, page_name=None, max_offset=0x40, max_depth=0x4, step= # We need to store both so that we can nicely create our leak chain. visited_map = {} visited_set = {int(address)} - address_queue = Queue() + address_queue = queue.Queue() address_queue.put(int(address)) depth = 0 time_to_depth_increase = 0