Skip to content

Commit

Permalink
Fix IsVulnerableToAvInDac version.
Browse files Browse the repository at this point in the history
  • Loading branch information
timcassell committed Aug 8, 2023
1 parent 8f35e9a commit 1c7463d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BenchmarkDotNet/Disassemblers/ClrMdV2Disassembler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ internal abstract class ClrMdV2Disassembler
{
// Translating an address to a method can cause AV and a process crash (https://github.com/dotnet/BenchmarkDotNet/issues/2070).
// It was fixed in https://github.com/dotnet/runtime/pull/79846,
// and most likely will be backported to 7.0.2 very soon (https://github.com/dotnet/runtime/pull/79862).
protected static readonly bool IsVulnerableToAvInDac = !RuntimeInformation.IsWindows() && Environment.Version < new Version(7, 0, 2);
// and backported to 7.0.3 (https://github.com/dotnet/runtime/pull/79862).
protected static readonly bool IsVulnerableToAvInDac = !RuntimeInformation.IsWindows() && Environment.Version < new Version(7, 0, 3);

internal DisassemblyResult AttachAndDisassemble(Settings settings)
{
Expand Down

0 comments on commit 1c7463d

Please sign in to comment.