-
Notifications
You must be signed in to change notification settings - Fork 158
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
* NEW: Add XML configuration option IncludeWixBinaries
to include Wix binaries in the analysis.
#944
Conversation
@@ -79,6 +79,8 @@ public CompilerDataLogger CompilerDataLogger | |||
|
|||
public bool IgnorePdbLoadError { get; set; } | |||
|
|||
public bool IncludeWixBinaries { get; set; } |
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.
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.
fixed
this is a useless utilization of the context object because this runtime type doesn't serialize. whoever added this didn't understand the context XML system. In reply to: 1640480352 Refers to: src/BinSkim.Sdk/BinaryAnalyzerContext.cs:69 in 60f6f7c. [](commit_id = 60f6f7c, deletion_comment = False) |
Here is a correct example of property utilization. In reply to: 1640480894 In reply to: 1640480894 Refers to: src/BinSkim.Sdk/BinaryAnalyzerContext.cs:43 in 60f6f7c. [](commit_id = 60f6f7c, deletion_comment = False) |
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.
🕐
please make this a config-capable property. In reply to: 1640531469 Refers to: src/BinSkim.Sdk/BinaryAnalyzerContext.cs:41 in 60f6f7c. [](commit_id = 60f6f7c, deletion_comment = False) |
add XML property In reply to: 1640531872 Refers to: src/BinSkim.Sdk/BinaryAnalyzerContext.cs:49 in 60f6f7c. [](commit_id = 60f6f7c, deletion_comment = False) |
Add XML property In reply to: 1640532133 Refers to: src/BinSkim.Sdk/BinaryAnalyzerContext.cs:51 in 60f6f7c. [](commit_id = 60f6f7c, deletion_comment = False) |
@@ -79,6 +79,8 @@ public CompilerDataLogger CompilerDataLogger | |||
|
|||
public bool IgnorePdbLoadError { get; set; } |
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.
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.
added
remove xml property In reply to: 1640532812 Refers to: src/BinSkim.Sdk/BinaryAnalyzerContext.cs:74 in 60f6f7c. [](commit_id = 60f6f7c, deletion_comment = False) |
src/BinSkim.Driver/AnalyzeOptions.cs
Outdated
[Option( | ||
"includeWixBinaries", | ||
HelpText = "If enabled, BinSkim will include Wix binaries in the analysis.")] | ||
public bool IncludeWixBinaries { get; set; } |
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.
so what should we do with the next 10 file types of this kind? do we propose to add 10 more command-line arguments?
what's the audience for this change? since the production of wix binaries is owned by the wix toolset, isn't it true that this feature is mostly for that narrow audience?
what I'd suggest here is either we have a single --include
argument that would accept an enumeration of binary kinds to fault in eventually. For now, however, with only a single case to address, we could simply proceed with a configuration XML solution. we can add the argument later if necessary. #Resolved
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.
as last conversation in the sync meeting, remove the option and use the xml config
Using this format now, thanks! In reply to: 1640480894 Refers to: src/BinSkim.Sdk/BinaryAnalyzerContext.cs:43 in 60f6f7c. [](commit_id = 60f6f7c, deletion_comment = False) |
added In reply to: 1640531469 Refers to: src/BinSkim.Sdk/BinaryAnalyzerContext.cs:41 in 60f6f7c. [](commit_id = 60f6f7c, deletion_comment = False) |
added In reply to: 1640532133 Refers to: src/BinSkim.Sdk/BinaryAnalyzerContext.cs:51 in 60f6f7c. [](commit_id = 60f6f7c, deletion_comment = False) |
removed In reply to: 1640480352 Refers to: src/BinSkim.Sdk/BinaryAnalyzerContext.cs:69 in 60f6f7c. [](commit_id = 60f6f7c, deletion_comment = False) |
removed In reply to: 1640532812 Refers to: src/BinSkim.Sdk/BinaryAnalyzerContext.cs:74 in 60f6f7c. [](commit_id = 60f6f7c, deletion_comment = False) |
fixed all others, this one is a bit different, it depends on the --trace, proposed to leave it another pr. In reply to: 1640531872 Refers to: src/BinSkim.Sdk/BinaryAnalyzerContext.cs:49 in 60f6f7c. [](commit_id = 60f6f7c, deletion_comment = False) |
--includeWixBinaries
option to include Wix binaries in the analysis.IncludeWixBinaries
to include Wix binaries in the analysis.
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.
Added test file for Wix v4.
Test will only pass after my fix is merged: #941