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 #1189: fixes patch command's arch=... value #1269

Merged
merged 1 commit into from
Oct 11, 2022

Conversation

disconnect3d
Copy link
Member

Before this commit we passed pwndbg.gdblib.arch.current as arch=... keyword argument to pwnlib functions like asm and disasm.

Since pwnlib has a concept of "context" that holds variables like currently set architecture or number of bits, this commit starts using those for the patch command implementation as we started to set pwnlib context recently in 9e84c18

Before this commit we passed `pwndbg.gdblib.arch.current` as `arch=...`
keyword argument to pwnlib functions like `asm` and `disasm`.

Since pwnlib has a concept of "context" that holds variables like
currently set architecture or number of bits, this commit starts using
those for the `patch` command implementation as we started to set pwnlib
context recently in 9e84c18
@codecov-commenter
Copy link

codecov-commenter commented Oct 11, 2022

Codecov Report

Merging #1269 (96830c8) into dev (ec8addd) will increase coverage by 0.27%.
The diff coverage is 64.80%.

@@            Coverage Diff             @@
##              dev    #1269      +/-   ##
==========================================
+ Coverage   54.52%   54.80%   +0.27%     
==========================================
  Files         182      182              
  Lines       20217    20231      +14     
  Branches     1865     1870       +5     
==========================================
+ Hits        11023    11087      +64     
+ Misses       8761     8728      -33     
+ Partials      433      416      -17     
Impacted Files Coverage Δ
pwndbg/commands/elf.py 26.31% <0.00%> (ø)
pwndbg/commands/mprotect.py 100.00% <ø> (ø)
pwndbg/commands/patch.py 48.93% <0.00%> (ø)
pwndbg/commands/probeleak.py 25.80% <0.00%> (ø)
pwndbg/gdblib/elf.py 40.08% <0.00%> (ø)
pwndbg/ghidra.py 16.27% <0.00%> (ø)
pwndbg/heap/ptmalloc.py 41.39% <34.48%> (ø)
pwndbg/commands/windbg.py 84.64% <50.00%> (ø)
pwndbg/gdblib/symbol.py 43.64% <56.00%> (ø)
pwndbg/gdblib/next.py 66.01% <58.33%> (+6.64%) ⬆️
... and 31 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@disconnect3d disconnect3d merged commit 8da9c5b into dev Oct 11, 2022
@disconnect3d disconnect3d deleted the fix-patch-command-arch branch October 11, 2022 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants