Skip to content

Conversation

@EarthCompass
Copy link

ELFs containing this program header will cause patchkit to crash.

Traceback (most recent call last):
  File "./patch", line 34, in <module>
    patch = Patcher(binary, verbose=options.verbose, cflags=options.cflags)
  File "/****/patchkit/core/patcher.py", line 11, in __init__
    self.bin = Binary(binary)
  File "/****/patchkit/core/binary.py", line 29, in __init__
    if ph.isload:
  File "/****/patchkit/util/elffile.py", line 1435, in isload
    return PT[self.type].name == 'PT_LOAD'
  File "/****/patchkit/util/elffile.py", line 66, in __getitem__
    return self.bycode[key]
KeyError: 1685382483

So I did a simple fix. ; )

@hacrot3000
Copy link

Thanks @EarthCompass, it works well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants