File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,11 @@ fn main() {
116
116
117
117
let mut redefinitions_file = BufWriter :: new ( File :: create ( & redefined_symbols) . unwrap ( ) ) ;
118
118
119
+ const NAMESPACE : & str = "🐇" ;
120
+ const NAMESPACE_LEN : usize = NAMESPACE . as_bytes ( ) . len ( ) ;
121
+
122
+ let replacement = format ! ( "_ZN{NAMESPACE_LEN}{NAMESPACE}" ) ;
123
+
119
124
// redefine all the rust-mangled symbols we can
120
125
// TODO this will break when v0 mangling is stabilised
121
126
for line in BufReader :: new ( child. stdout . take ( ) . unwrap ( ) ) . lines ( ) {
@@ -126,7 +131,7 @@ fn main() {
126
131
redefinitions_file,
127
132
"{} {}" ,
128
133
symbol,
129
- symbol. replacen( "_ZN" , "_ZN26__libafl_libfuzzer_runtime" , 1 )
134
+ symbol. replacen( "_ZN" , & replacement , 1 )
130
135
)
131
136
. unwrap ( ) ;
132
137
}
You can’t perform that action at this time.
0 commit comments