AFLplusplus / AFLplusplus/LibAFL

`InMemoryOnDiskCorpus::with_meta_format_and_prefix` does not actually add a prefix to files

未关闭
#3,404 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
2.6k
派生
481
平均合并
2 天 30 分钟
30 天内合并 PR
16

描述

It looks like the `prefix` field of `InMemoryOnDiskCorpus` can be set using `with_meta_format_and_prefix`, but it is actually never used to compose the name of the corpus files [as the documentation states][1]. The same holds for `OnDiskCorpus::with_prefix`, which offloads that functionality to this struct.

https://github.com/AFLplusplus/LibAFL/blob/fb5772e425fef60cfa7529488c98542254b1e543/crates/libafl/src/corpus/inmemory_ondisk.rs#L55-L65

It looks like the `prefix` field was added as part of https://github.com/AFLplusplus/LibAFL/pull/981 but never completely implemented.

[1]: https://docs.rs/libafl/latest/libafl/corpus/inmemory_ondisk/struct.InMemoryOnDiskCorpus.html#method.with_meta_format_and_prefix

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。