Skip to content

Commit 07ac17f

Browse files
zt20xxArusekk
andauthored
fix spelling mistakes
Co-authored-by: Arusekk <[email protected]>
1 parent 78e1b76 commit 07ac17f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pwnlib/elf/elf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ def search(self, needle, writable = False, executable = False):
12971297
for section in super().iter_sections():
12981298
if section.name.startswith(".rodata"):
12991299
rodata_filesz += section['sh_size']
1300-
elif section.name.startswith(".node"):
1300+
elif section.name.startswith(".note"):
13011301
note_filesz += section['sh_size']
13021302
addr = (text_filesz//PAGESIZE + 1 + (note_filez+rodata_filesz)//PAGESIZE + 1)*PAGESIZE
13031303
yield (addr + offset + load_address_fixup)

0 commit comments

Comments
 (0)