Skip to content

Commit

Permalink
Add assembly resource file filtering back.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelcfanning committed Feb 22, 2021
1 parent 62c7d0f commit 84e2d02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/BinSkim.Rules/PERules/BA2006.BuildWithSecureTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ public override AnalysisApplicability CanAnalyzePE(PEBinary target, PropertiesDi
reasonForNotAnalyzing = MetadataConditions.ImageIsILOnlyAssembly;
if (portableExecutable.IsILOnly) { return result; }

reasonForNotAnalyzing = MetadataConditions.ImageIsResourceOnlyBinary;
if (portableExecutable.IsResourceOnly) { return result; }

reasonForNotAnalyzing = null;
return AnalysisApplicability.ApplicableToSpecifiedTarget;
}
Expand Down

0 comments on commit 84e2d02

Please sign in to comment.