Skip to content

Commit 509a91b

Browse files
author
crossbowerbt
committed
fixed typo
1 parent d431f69 commit 509a91b

11 files changed

+16
-16
lines changed

Diff for: examples/function-sniffers/read-sniffer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ def __init__ (self):
4444
#
4545
def stop (self):
4646

47-
# get the string lenght, from the return value of the function
48-
lenght = gdb.parse_and_eval('$rax')
47+
# get the string length, from the return value of the function
48+
length = gdb.parse_and_eval('$rax')
4949

5050
# get the string address, from the second arguments of the function
5151
address = gdb.parse_and_eval('$rsi')
5252

5353
# get the string
54-
string = gdb.inferiors()[0].read_memory(address, lenght)
54+
string = gdb.inferiors()[0].read_memory(address, length)
5555

5656
# print sniffed data
5757
print string

Diff for: examples/function-sniffers/write-sniffer.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ def __init__ (self):
3737
#
3838
def stop (self):
3939

40-
# get the string lenght, from the return value of the function
41-
lenght = gdb.parse_and_eval('$rax')
40+
# get the string length, from the return value of the function
41+
length = gdb.parse_and_eval('$rax')
4242

4343
# get the string address, from the second arguments of the function
4444
address = gdb.parse_and_eval('$rsi')
4545

4646
# get the string
47-
string = gdb.inferiors()[0].read_memory(address, lenght)
47+
string = gdb.inferiors()[0].read_memory(address, length)
4848

4949
# print sniffed data
5050
print string

Diff for: examples/in-memory-fuzzer/in-memory-fuzz.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def malloc(size):
3737
#
3838
# Generate strings for the fuzzer
3939
#
40-
# In this case we start with a short email and slowly increase its lenght...
40+
# In this case we start with a short email and slowly increase its length...
4141
#
4242
fuzz_email = ''
4343
def get_fuzz_email():

Diff for: gdb_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# Read an ASCII string from memory
1616
#
1717
# @param address (int) memory address of the string
18-
# @param count (int) maximum string lenght
18+
# @param count (int) maximum string length
1919
#
2020
# @return string read (str)
2121
#

Diff for: html/files.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: html/gdb__utils_8py.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: html/index.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: html/namespacegdb__utils.html

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: html/namespacemembers.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: html/namespacemembers_func.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: html/namespaces.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)