You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report!
The decoder callback functionality will be removed from the next version, which more broadly aims to make this crate safer.
If anyone is willing to fix this, PRs are welcome!
ConfigBuilder::with_callback
receives an ownedcb
the address of which is assigned tocfg.decode.context
.libipt-rs/src/config/config.rs
Line 230 in b312bc7
The callback is later invoked in
decode_callback
.libipt-rs/src/config/config.rs
Line 201 in b312bc7
However,
cb
only lives until the end ofwith_callback
. This can lead to use-after-free, as demonstrated by this test case below:The text was updated successfully, but these errors were encountered: