AFLplusplus / AFLplusplus/LibAFL

Implement TypeNamed to allow for consistent deserialization of metadata

Aperta
#2,131 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Rust
Stelle
2.6k
Fork
481
Merge medio
2g 30m
PR unite (30g)
16

Descrizione

Currently, a rebuild will potentially cause existing metadata naming to become invalid as `type_name` is unstable. This means that, between builds, metadata stored in corpora are not guaranteed to be loaded.

Instead, we should implement a trait, `TypeNamed`, which allows a structure to provide a consistent name. This should be implemented such that generic structures have different type names per monomorphisation by way of invoking `TypeNamed` implementations on its generic parameters. To be performant, this function should accept a `Write` type (e.g. `Vec`) and recursively invoke children.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.