Skip to content

Commit

Permalink
fixed flow bug:
Browse files Browse the repository at this point in the history
  • Loading branch information
dronavallipranav committed Jan 8, 2024
1 parent 3999ea9 commit 24b7ae5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion auto_obfuscate/src/flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl VisitMut for FlowObfuscator {
//if use macro enabled, use macro to expand to dummy loop
if self.use_macro {
let macro_call = syn::parse_quote! {
labyrinth_macros::generate_dummy_loop!()
labyrinth::flow_stmt!();
};
block.stmts.insert(0, macro_call);
} else {
Expand Down
2 changes: 0 additions & 2 deletions auto_obfuscate/src/obfuscate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ impl Obfuscator {
if self.string_obfuscator.enabled {
result = self.string_obfuscator.obfuscate_strings(&result);
}
println!("{}", result);
if self.flow_obfuscator.enabled {
result = self.flow_obfuscator.flow_obfuscate(&result);
println!("{}", result);
}
if self.rename_obfuscator.enabled {
result = self.rename_obfuscator.rename(&result);
Expand Down

0 comments on commit 24b7ae5

Please sign in to comment.