Closed wtdcode closed 1 year ago
CC @andreafioraldi
I think it might be enough to be 'a
here?
no, deserializeowned requires 'static
no, deserializeowned requires 'static
@andreafioraldi Reading from https://serde.rs/lifetimes.html , I assume using 'static
everywhere is not correct pattern?
no, deserializeowned requires 'static
@andreafioraldi Reading from https://serde.rs/lifetimes.html , I assume using
'static
everywhere is not correct pattern?
That's true for the struct, but StdMapObserver can take non static maps (https://github.com/AFLplusplus/LibAFL/blob/main/libafl/src/observers/map.rs#L544) it is just the type inside the map that must be 'static (integers are in the case of an AFL-like map).
Btw try to remove 'static and see what happens.
Please reopen if there are further questions or suggestions :)
I doubt why
'static
is required for T here?