Skip to content

Commit

Permalink
Land #11101, temp fix for x64/xor stage encoder
Browse files Browse the repository at this point in the history
Merge branch 'land-11101' into upstream-master
  • Loading branch information
bwatters-r7 committed Dec 17, 2018
2 parents 1b581b0 + 6237740 commit bf13693
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/encoders/x64/xor_dynamic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ def initialize
)
end

# Indicate that this module can preserve some registers
# ...which is currently not true. This is a temp fix
# until the full preserve_registers functionality is
# implemented.
def can_preserve_registers?
true
end

def stub
"\xeb\x27" + # jmp _call
"\x5b" + # _ret: pop rbx
Expand Down
8 changes: 8 additions & 0 deletions modules/encoders/x86/xor_dynamic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ def initialize
)
end

# Indicate that this module can preserve some registers
# ...which is currently not true. This is a temp fix
# until the full preserve_registers functionality is
# implemented.
def can_preserve_registers?
true
end

def stub
"\xeb\x23" + # jmp _call
"\x5b" + # _ret: pop ebx
Expand Down

0 comments on commit bf13693

Please sign in to comment.