Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Open Source Software
IRDB Cookbook Examples
Commits
8ba0ebb1
Commit
8ba0ebb1
authored
Jul 16, 2020
by
Daniel Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "revert"
This reverts commit
30c26465
.
parent
c8e3e6c9
Pipeline
#8520
passed with stages
in 11 minutes and 20 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
kill_deads/kill_deads.cpp
kill_deads/kill_deads.cpp
+2
-2
No files found.
kill_deads/kill_deads.cpp
View file @
8ba0ebb1
...
...
@@ -75,7 +75,7 @@ bool KillDeads::execute()
{
// for flags, do a random compare to change them
char
buf
[
100
];
sprintf
(
buf
,
" cmp rax,
%d
"
,
kill_val
);
sprintf
(
buf
,
" cmp rax,
0x%x
"
,
kill_val
);
cout
<<
"Inserting '"
<<
buf
<<
"' before '"
<<
insn
->
getDisassembly
()
<<
"'"
<<
endl
;
insertAssemblyBefore
(
insn
,
buf
);
killed_flags
++
;
...
...
@@ -86,7 +86,7 @@ bool KillDeads::execute()
{
// integer registers can be killed with a mov instruction
char
buf
[
100
];
sprintf
(
buf
,
" mov %s,
%d
"
,
registerToString
(
reg
).
c_str
(),
kill_val
);
sprintf
(
buf
,
" mov %s,
0x%x
"
,
registerToString
(
reg
).
c_str
(),
kill_val
);
cout
<<
"Inserting '"
<<
buf
<<
"' before '"
<<
insn
->
getDisassembly
()
<<
"'"
<<
endl
;
insertAssemblyBefore
(
insn
,
buf
);
killed_regs
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment