diff options
Diffstat (limited to 'examples/darwin/heap_find/heap.py')
| -rw-r--r-- | examples/darwin/heap_find/heap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/darwin/heap_find/heap.py b/examples/darwin/heap_find/heap.py index 81f36adb9c51..c463380bf49f 100644 --- a/examples/darwin/heap_find/heap.py +++ b/examples/darwin/heap_find/heap.py @@ -1036,7 +1036,7 @@ range_callback_t range_callback = [](task_t task, void *baton, unsigned type, ui callback_baton_t *lldb_info = (callback_baton_t *)baton; if (lldb_info->cstr_len < ptr_size) { const char *begin = (const char *)ptr_addr; - const char *end = begin + ptr_size - info->cstr_len; + const char *end = begin + ptr_size - lldb_info->cstr_len; for (const char *s = begin; s < end; ++s) { if ((int)memcmp(s, lldb_info->cstr, lldb_info->cstr_len) == 0) { if (lldb_info->num_matches < MAX_MATCHES) { |
