Solomon Rutzky
5cd228adc4
Fix "DLL Characteristics" meanings in Optional Header
...
Made changes to several of the "Meaning" values of the "DLL Characteristics" flags in order to match the official documentation ( https://docs.microsoft.com/en-us/dotnet/api/system.reflection.portableexecutable.dllcharacteristics ):
1. Added definitions for first four values (0x01, 0x02, 0x04, and 0x08); it seems that they are "Reserved" instead of "Unused". I'm not sure if these values will ever be seen, but I figured it best to include the definitions since they seems to exist.
2. Changed wording in option 0x1000 to be "must" instead of "should" as it's both clearer and matches the documentation.
3. For option 0x20, the description here was "ASLR with 64-bit address space", while the documentation has it as "The image can handle a high entropy 64-bit virtual address space". After reviewing https://en.wikipedia.org/wiki/Address_space_layout_randomization I believe it's best to favor the documentation but also include 'ASLR' since that's really what the option pertains to.
Please note that options 0x80 and 0x4000 (copied below) are, for some odd reason, missing from the official documentation. I don't see a reason to remove them as the documentation is not 100% correct and sometimes things are left out. Should we add a comment in the C# code on each of those two lines indicating the disparity? For now I'm not doing that but might not be a bad idea to make it visible there since nobody will ever see this note here:
<0080> Code integrity checks are enforced
<4000> Image supports Control Flow Guard
5 years ago
Siegfried Pammer
3dd360dbe1
Fix #2105 : Add "parent" methods of FSMs to output in MethodUsedByAnalyzer and MethodVirtualUsedByAnalyzer
5 years ago
Siegfried Pammer
f9a016a755
#2105 : Display async method instead of FSM method, if C# is selected in the MethodUsedByAnalyzer.
5 years ago
Siegfried Pammer
f40b8e777e
#2105 : Update AnalyzerTreeView to use current language, if it is changed.
5 years ago
Siegfried Pammer
902aca03ff
Merge pull request #2145 from srutzky/patch-1
...
Fix #2138 : Add flag values to both "Characteristics" lists in Metadata Explorer
5 years ago
Solomon Rutzky
fc5c28426e
Add flag values to Characteristics list in COFF Header
...
Make it easier to see relationship between the "Characteristics" value and the individual items / flags that make up that value.
5 years ago
Solomon Rutzky
c8a08b6838
Add flag values to Characteristics list in Optional Header
...
Make it easier to see relationship between the "DLL Characteristics" value and the individual items / flags that make up that value.
5 years ago
Siegfried Pammer
549f7fb44d
Fix #2143 : Missing `this.` qualification in lambda
5 years ago
Siegfried Pammer
04f9603768
Fix #2140 : ILSpy 6.2p1 no longer respects "use discards" setting
5 years ago
Daniel Grunwald
754a2f00fc
Fix formatting.
5 years ago
Daniel Grunwald
3d10509b1b
Add SparseIntegerSwitch option.
5 years ago
Daniel Grunwald
5bd8c69a48
Disable transform for Span<T> initialization from field with RVA if "ArrayInitializers" setting is disabled.
...
https://github.com/ashmind/SharpLab/issues/542
5 years ago
Daniel Grunwald
bb99e9668a
Fix #2115 : Re-introduce the evaluation order bug #2050 when a language version <=C# 5 is selected.
5 years ago
Daniel Grunwald
7f915ad035
Add `OutVarResolveResult` to overload resolution (not yet used by CallBuilder)
5 years ago
Daniel Grunwald
c775d3a98f
Upgrade Roslyn version used for our tests (from 3.7.0 to 3.8.0-2.final) and adjust NativeInteger attribute decoding.
5 years ago
Daniel Grunwald
b035ec1960
Fix #2129 : be more flexible about the initialization order for the async state machine.
5 years ago
Siegfried Pammer
19719ee1fb
#2109 : Skip id ranges with no events
5 years ago
Siegfried Pammer
e53fe4fe68
Fix #2106 : EventSetter is lost.
5 years ago
Siegfried Pammer
9465054a70
Fix #2109 : Add support for IStyleConnector.Connect in BAML decompilation
5 years ago
Siegfried Pammer
d8b1f1f8d2
Fix #2039 : "Could not convert BlockContainer to single expression" workaround produces uncompilable code - potentially unassigned variables.
5 years ago
Christoph Wille
84ff7209cc
Update frontends for 6.2p1
5 years ago
Siegfried Pammer
45d7e06d18
Merge pull request #2135 from srutzky/patch-1
...
Fix "Offset" values in Optional Header metadata
5 years ago
Solomon Rutzky
0b515af53d
Fix "Offset" in Optional Header
...
Offsets in this metadata section are missing the base offset and thus start at 00000000 instead of at something like 00000098. I applied the base offset in the same manner that it's being applied in CoffHeaderTreeNode.cs.
5 years ago
Siegfried Pammer
455ee92c3d
Merge pull request #2134 from srutzky/patch-1
...
Fix several "Size" values in Optional Header
5 years ago
Solomon Rutzky
d80eec8cba
Fix several "Size" values in OptionalHeader
...
All of the UInt16 values were given a size of 4 when they really should be 2.
5 years ago
Siegfried Pammer
6bd3f5fe74
#1663 : Add various safe-guards against unintended use to Language and SolutionWriter.
5 years ago
Siegfried Pammer
6d06abae1f
Fix OutOfRangeException in CallBuilder.CanInferTypeArgumentsFromArguments
5 years ago
Siegfried Pammer
c74680df33
Fix #1781 : TDCU: Support methods without .locals init
5 years ago
Siegfried Pammer
70a48898c8
Fix #2132 : Uncaught FileNotFoundException, if sessionSettings.ActiveAutoLoadedAssembly does no longer exist.
5 years ago
Siegfried Pammer
52263da8df
#2129 : prevent state-machines from being treated as display classes.
5 years ago
Siegfried Pammer
6824902663
Disable formatting of ExpressionTrees.cs, so appveyor does not complain.
5 years ago
Siegfried Pammer
099e45f4b3
add core.autocrlf true to azure build.
5 years ago
Christoph Wille
7c1892109e
Install latest in major and minor version (azure-pipelines.yml)
5 years ago
Siegfried Pammer
7e979384e0
add core.autocrlf true to build.
5 years ago
Siegfried Pammer
52e34602d8
Fix build.
5 years ago
Siegfried Pammer
734d798365
#2128 : Add dotnet-format --check to build pipeline
5 years ago
Siegfried Pammer
26617c855a
#2128 : Fix formatting issues
5 years ago
Siegfried Pammer
62185149dc
Fix #2131 : Analyze does not detect usage in typeof() in attributes
5 years ago
Siegfried Pammer
f128c1c16b
Fix #2130 : Crash in mouseover of string literal token
5 years ago
Siegfried Pammer
f245d93fef
#2128 : Adjust formatting settings used in tests to match our new style.
5 years ago
Siegfried Pammer
41c8f329b8
#2128 : Add .git-blame-ignore-revs
5 years ago
dotnet format
0d9f871a4f
#2128 : Reformat the whole code base.
5 years ago
Siegfried Pammer
ba744b9411
#2128 : change .editorconfig according to our new code style.
5 years ago
Siegfried Pammer
e320819103
Formatting change: while-condition loop to do-while loop.
5 years ago
Siegfried Pammer
a6bbccae8d
Fix #2123 : switch on string detection:
...
1) Do not remove switchValueVar, if it is used elsewhere.
2) Support empty case blocks in SimplifyCascadingIfStatements transform
5 years ago
Siegfried Pammer
0c9ff4667c
Fix #1441 : Decompose flags enum values starting from the value with the highest Hamming Weight (popcount).
5 years ago
Christoph Wille
215340bc83
Merge pull request #2126 from cshung/public/dev/andrewau/update
...
Adapting to the changes proposed by Tomas
5 years ago
Andrew Au
43ab0c76cf
Adapting to the changes proposed by Tomas
5 years ago
Siegfried Pammer
3bac7e1d4e
Fix #2124 : Unwrap nullables when printing constant values.
5 years ago
Siegfried Pammer
bfa4a27f39
#2117 : Print hints about project format after decompilation.
5 years ago