File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ def fromFile(self, fileobj):
220220 except struct .error :
221221 # e.g. if file was too short struct size wont match
222222 raise ELFException ("Not a valid ELF file" )
223- # verify if its a known format and realy an ELF file
223+ # verify if its a known format and really an ELF file
224224 if self .e_ident [0 :4 ] != b'\x7f ELF' and \
225225 self .e_ident [self .EI_CLASS ] != self .ELFCLASS32 and \
226226 self .e_ident [self .EI_DATA ] != self .ELFDATA2LSB and \
@@ -244,7 +244,7 @@ def fromFile(self, fileobj):
244244 #~ phdr.data = fileobj.read(phdr.p_filesz)
245245 #~ #pad if needed
246246 #~ if phdr.p_filesz < phdr.p_memsz:
247- #~ phdr.data = phdr.data + '\0' * (phdr.p_memsz-phdr.p_filesz)
247+ #~ phdr.data = phdr.data + b '\0' * (phdr.p_memsz-phdr.p_filesz)
248248
249249 #load sections
250250 self .sections = []
You can’t perform that action at this time.
0 commit comments