AFLplusplus/LibAFL

Potential Undefined Behavior in Frida ASan

開放

#1,862 建立於 2024年2月15日

 (1 則留言) (0 個反應) (0 位負責人)Rust (480 個分叉)github user discovery
bughelp wanted

倉庫指標

星標
 (2,622 顆星)
PR 合併指標
 (平均合併 17天 22小時) (30 天內合併 10 個 PR)

描述

In asan_rt.rs, we're getting mutable references to self at various places, hereby creating aliases for mutable references. This is not permitted in Rust and may break in the future, see here: https://github.com/AFLplusplus/LibAFL/blob/97a83aba3bc6376786984efde3e4a968fe553068/libafl_frida/src/asan/asan_rt.rs#L1945C42-L1945C46 Instead, we probably need to store the runtime on the heap and keep a pointer to it (Rc, UnsafeCell, Pin, or something like that?)

貢獻者指南