[PATCH] D48800: libFuzzer: prevent irrelevant strings from leaking into auto-dictionary

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 3 14:29:47 PDT 2018


kcc added a comment.

In https://reviews.llvm.org/D48800#1150953, @pdknsk wrote:

> In https://reviews.llvm.org/D48800#1150324, @kcc wrote:
>
> > Why is it safe to remove ScopedDoingMyOwnMemOrStr from the places you've removed it from?
>
>
> Note that this removes ScopedDoingMyOwnMemOrStr completely. It's safe because the functions using it run outside the callback. MakeDictionaryEntryFromCMP before, operator== (used in ContainsWord) after, and operator< appears unused.
>
> It'd be different if the functions (TPC.AddValueForMemcmp, TPC.MMT.Add) used inside the hooks (recursively) triggered the hooks, but that's not the case.


Thanks for checking. Indeed, looks like ScopedDoingMyOwnMemOrStr is now redundant. 
I've just removed the stale operator<

Why do you need the new variable InCB? 
Will the existing RunningCB not work?


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D48800





More information about the llvm-commits mailing list