-
Notifications
You must be signed in to change notification settings - Fork 157
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
Hash reporting. #929
Hash reporting. #929
Conversation
@@ -33,8 +33,8 @@ function Build-Baselines($sourceExtension) | |||
|
|||
# Actually run the tool | |||
Remove-Item $outputTemp -ErrorAction SilentlyContinue | |||
Write-Host "$utility analyze "$input" --output "$outputTemp" --kind "Fail;Pass" --level "Error;Warning;Note" --insert Hashes --remove NondeterministicProperties --config default --quiet true" | |||
& $utility analyze "$input" --output "$outputTemp" --kind "Fail;Pass" --level "Error;Warning;Note" --insert Hashes --remove NondeterministicProperties --config default --quiet true | |||
Write-Host "$utility analyze "$input" --output "$outputTemp" --kind "Fail`;Pass" --level "Error`;Warning`;Note" --insert Hashes --remove NondeterministicProperties --config default --quiet true" |
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.
"id": "Warning_NativeWithInsecureStaticLibraryCompilands", | ||
"arguments": [ | ||
"MixedMode_x64_VS2015_Default.exe", | ||
"Microsoft (R) Optimizing Compiler : cxx : 19.0.24215.1 : [directly linked] [No hash value present] (.NETFramework,Version=v4.5.2.AssemblyAttributes.obj)\r\n" |
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.
looks nice.
for a same file we had:
error
for direct;
warning
;
question is if for the new one added "no hash"
do we want to use note
, or same warning
] | ||
}, | ||
{ | ||
"ruleId": "BA2004", |
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.
saw this file was checked in by me so I get the branch and debugged,
found the small issue and fixed and pushed, please see my last commit if correct.
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.
YES. Thanks for fixing this! I really appreciate it.
@@ -55,7 +55,28 @@ | |||
"id": "Warning_NativeWithInsecureStaticLibraryCompilands", | |||
"arguments": [ | |||
"Uwp_ARM64_VS2019_Cpp.dll", | |||
"Microsoft (R) ARM Macro Assembler : masm : 14.22.26504.99 : MSVCRT.lib (arm64secgs.obj)\r\nMicrosoft (R) Optimizing Compiler : c : 19.22.26504.99 : MSVCRT.lib (cpu_disp.obj,dyn_tls_init.obj,gs_cookie.obj,gs_report.obj,gs_support.obj,guard_support.obj,loadcfg.obj,ucrt_detection.obj)\r\nMicrosoft (R) Optimizing Compiler : cxx : 19.22.26504.99 : MSVCRT.lib (app_appinit.obj,argv_mode.obj,default_local_stdio_options.obj,dll_dllmain.obj,initializers.obj,tncleanup.obj,ucrt_stubs.obj,utility.obj,utility_app.obj)\r\n" | |||
"Microsoft (R) ARM Macro Assembler : masm : 14.22.26504.99 : MSVCRT.lib [SHA1] (arm64secgs.obj)\r\n\r\n" |
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.
This change breaks apart all evidence of no hash data in modules as a specific, separate warning. This condition may indicate a problem that can't be resolved by the user/compiler in its current form.
A second change is that we emit the hash algorithm in use in the reporting and separate module lists by algorithm, e.g. 👍
Working on a small unit test to confirm the addition of an arbitrary
comment
in the module output helper.