There is no way to apply sanitizer suppressions to ObjC blocks. A
reasonable default is to have blocks inherit their parent's sanitizer
options.
rdar://32769634
Differential D40668
[Blocks] Inherit sanitizer options from parent decl vsk on Nov 30 2017, 12:15 PM. Authored by
Details There is no way to apply sanitizer suppressions to ObjC blocks. A rdar://32769634
Diff Detail
Event TimelineComment Actions LGTM. Thanks! I was wondering if there are other places where this propagation needs to be added, for example, other calls to GenerateBlockFunction. Comment Actions Thanks for the review :). Yes there is one other site which calls GenerateBlockFunction, but that is done in CodeGenModule, where there are no SanOpts to inherit *except* those from the CGM, which is already the default behavior. (You can apply suppressions to those by specifying "_block_invoke*" in your blacklist.) So I think this is all that's needed. |