Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

A code in `AddRareFeature` function is unclear for me

9 views
Skip to first unread message

Sehoon Kim

unread,
Apr 26, 2023, 3:52:33 PM4/26/23
to libfuzzer

https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/fuzzer/FuzzerCorpus.h#L374

It seems like `MostAbundantRareFeatureIndices` is supposed to have the most, and the second most abundant features. This would work if the loop meets the second most one first and then meets the most one. But if the loop meets the most abundant feature first, the second most feature wouldn’t  be updated correctly. It would be great if you let me know what I’m missing here as it’s my first time to look into LibFuzzer source. Thanks in advance!

Reply all
Reply to author
Forward
0 new messages