Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update dac vulnerable version.
  • Loading branch information
timcassell committed Aug 21, 2023
commit 5a3cff2d2ce76ed105d528eaec10d192bbb18110
6 changes: 3 additions & 3 deletions src/BenchmarkDotNet/Disassemblers/ClrMdV2Disassembler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ namespace BenchmarkDotNet.Disassemblers
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);
// It was partially fixed in https://github.com/dotnet/runtime/pull/79846,
// fully fixed in https://github.com/dotnet/runtime/pull/90797.
protected static readonly bool IsVulnerableToAvInDac = !RuntimeInformation.IsWindows() && Environment.Version < new Version(8, 0);

internal DisassemblyResult AttachAndDisassemble(Settings settings)
{
Expand Down