Skip to content

Commit

Permalink
Fix pylint error
Browse files Browse the repository at this point in the history
  • Loading branch information
clubby789 committed Nov 28, 2022
1 parent c611be9 commit 914043a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pwnlib/asm.py
Expand Up @@ -585,7 +585,8 @@ def make_elf(data,
log.error("Cannot specify a VMA for a shared library.")

if context.arch == 'thumb':
to_thumb = asm(shellcraft.arm.to_thumb(), arch='arm')
with context.local(arch='arm'):
to_thumb = asm(shellcraft.arm.to_thumb())

if not data.startswith(to_thumb):
data = to_thumb + data
Expand Down

0 comments on commit 914043a

Please sign in to comment.