-
-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #1932 #2089
Conversation
@@ -140,7 +140,7 @@ unsafe fn fuzz(options: &FuzzerOptions) -> Result<(), Error> { | |||
// RNG | |||
StdRand::with_seed(current_nanos()), | |||
// Corpus that will be evolved, we keep it in memory for performance | |||
CachedOnDiskCorpus::no_meta(PathBuf::from("./corpus_discovered"), 64) | |||
CachedOnDiskCorpus::no_meta(PathBuf::from("./corpus_discovered"), 4) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For an example fuzzer this might be a bit small?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah that was for debugging
i forgot to remove
@@ -125,14 +119,14 @@ where | |||
#[inline] | |||
fn get(&self, idx: CorpusId) -> Result<&RefCell<Testcase<I>>, Error> { | |||
let testcase = { self.inner.get(idx)? }; | |||
self.cache_testcase(testcase, idx, false)?; | |||
self.cache_testcase(testcase, idx)?; | |||
Ok(testcase) | |||
} | |||
/// Get by id; considers both enabled and disabled testcases | |||
#[inline] | |||
fn get_from_all(&self, idx: CorpusId) -> Result<&RefCell<Testcase<Self::Input>>, Error> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we even cache if the testcase is disabled? I don't know if we usually want that, it should be used way less?
@R9295 FYI, the disabled testcases crashed the fuzzer for CachedOnDiskCorpus |
@domenukk Oh, my bad. If I understood it correctly, it is because the disabled entry may be considered as enabled when the fuzzer restarts and the state is not serialized? |
no it's unrelated. see the end of #1932 |
No description provided.