@@ -2329,7 +2329,7 @@ def get_zone_base_address(name: str) -> int | None:
2329
2329
# Architecture classes
2330
2330
#
2331
2331
2332
- @deprecated ("Using the decorator `register_architecture` is unecessary " )
2332
+ @deprecated ("Using the decorator `register_architecture` is unnecessary " )
2333
2333
def register_architecture (cls : Type ["Architecture" ]) -> Type ["Architecture" ]:
2334
2334
return cls
2335
2335
@@ -2480,7 +2480,7 @@ def endianness(self) -> Endianness:
2480
2480
elif "big endian" in output :
2481
2481
self ._endianness = Endianness .BIG_ENDIAN
2482
2482
else :
2483
- raise OSError (f"No valid endianess found in '{ output } '" )
2483
+ raise OSError (f"No valid endianness found in '{ output } '" )
2484
2484
return self ._endianness
2485
2485
2486
2486
def get_ith_parameter (self , i : int , in_func : bool = True ) -> tuple [str , int | None ]:
@@ -6046,7 +6046,7 @@ class SearchPatternCommand(GenericCommand):
6046
6046
_example_ = [f"{ _cmdline_ } AAAAAAAA" ,
6047
6047
f"{ _cmdline_ } 0x555555554000 little stack" ,
6048
6048
f"{ _cmdline_ } AAAA 0x600000-0x601000" ,
6049
- f"{ _cmdline_ } --regex 0x401000 0x401500 ([\\ \\ x20-\\ \\ x7E]{{2,}})(?=\\ \\ x00) <-- It matchs null-end-printable(from x20-x7e) C strings (min size 2 bytes)" ]
6049
+ f"{ _cmdline_ } --regex 0x401000 0x401500 ([\\ \\ x20-\\ \\ x7E]{{2,}})(?=\\ \\ x00) <-- It matches null-end-printable(from x20-x7e) C strings (min size 2 bytes)" ]
6050
6050
6051
6051
def __init__ (self ) -> None :
6052
6052
super ().__init__ ()
@@ -9691,7 +9691,7 @@ def setup(self) -> None:
9691
9691
gdb .execute ("set can-use-hw-watchpoints 0" )
9692
9692
9693
9693
info ("Dynamic breakpoints correctly setup, "
9694
- "GEF will break execution if a possible vulnerabity is found." )
9694
+ "GEF will break execution if a possible vulnerability is found." )
9695
9695
warn (f"{ Color .colorify ('Note' , 'bold underline yellow' )} : "
9696
9696
"The heap analysis slows down the execution noticeably." )
9697
9697
@@ -10000,13 +10000,13 @@ def load_plugin(fpath: pathlib.Path) -> bool:
10000
10000
10001
10001
def load_plugins_from_directory (plugin_directory : pathlib .Path ):
10002
10002
nb_added = - 1
10003
- nb_inital = len (__registered_commands__ )
10003
+ nb_initial = len (__registered_commands__ )
10004
10004
start_time = time .perf_counter ()
10005
10005
for entry in plugin_directory .glob ("**/*.py" ):
10006
10006
load_plugin (entry )
10007
10007
10008
10008
try :
10009
- nb_added = len (__registered_commands__ ) - nb_inital
10009
+ nb_added = len (__registered_commands__ ) - nb_initial
10010
10010
if nb_added > 0 :
10011
10011
self .load ()
10012
10012
nb_failed = len (__registered_commands__ ) - len (self .commands )
@@ -10733,7 +10733,7 @@ def reset_caches(self) -> None:
10733
10733
continue
10734
10734
obj .cache_clear ()
10735
10735
except Exception :
10736
- # we're reseting the cache here, we don't care if (or which) exception triggers
10736
+ # we're resetting the cache here, we don't care if (or which) exception triggers
10737
10737
continue
10738
10738
return
10739
10739
@@ -10972,7 +10972,7 @@ def parse_monitor_info_mem() -> Generator[Section, None, None]:
10972
10972
@staticmethod
10973
10973
def parse_gdb_maintenance_info_sections () -> Generator [Section , None , None ]:
10974
10974
"""Get the memory mapping from GDB's command `maintenance info sections` (limited info). In some cases (i.e. coredumps),
10975
- the memory info collected by `info proc sections` is insufficent ."""
10975
+ the memory info collected by `info proc sections` is insufficient ."""
10976
10976
stream = StringIO (gdb .execute ("maintenance info sections" , to_string = True ))
10977
10977
10978
10978
for line in stream :
0 commit comments