Skip to content

Commit 6df8ac2

Browse files
committed
correct type hinting
1 parent 49761b5 commit 6df8ac2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

volatility3/framework/objects/utility.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import re
66

7-
from typing import Optional, Union
7+
from typing import List, Optional, Union
88

99
from volatility3.framework import interfaces, objects, constants, exceptions
1010

@@ -260,7 +260,7 @@ def dynamically_sized_array_of_pointers(
260260
stop_value: int = 0,
261261
iterator_guard_value: int = None,
262262
stop_on_invalid_pointers: bool = True,
263-
) -> interfaces.objects.ObjectInterface:
263+
) -> List[interfaces.objects.ObjectInterface]:
264264
"""Iterates over a dynamically sized array of pointers (e.g. NULL-terminated).
265265
266266
Args:
@@ -272,6 +272,9 @@ def dynamically_sized_array_of_pointers(
272272
iterator_guard_value: Stop iterating when the iterator index is greater than this value. This is an extra-safety against smearing.
273273
stop_on_invalid_pointers: Determines whether to stop iterating or not when an invalid pointer is encountered. This can be useful for arrays
274274
that are known to have smeared entries before the end.
275+
276+
Returns:
277+
An array of pointer objects
275278
"""
276279
pointer_type = context.symbol_space.get_type(
277280
symbol_table_name + constants.BANG + "pointer"

0 commit comments

Comments
 (0)