Merge all changes

This commit is contained in:
StellaOps Bot
2026-01-08 08:54:27 +02:00
parent 589de352c2
commit 110591d6bf
381 changed files with 2237 additions and 1939 deletions

View File

@@ -27,7 +27,7 @@ public class BinaryTextSectionReaderTests
var path = WriteTempFile(data);
try
{
var section = await DisassemblyTextSectionReader.TryReadAsync(path, BinaryFormat.Elf, CancellationToken.None);
var section = await DisassemblyTextSectionReader.TryReadAsync(path, BinaryFormat.Elf, TestContext.Current.CancellationToken);
Assert.NotNull(section);
Assert.Equal(".text", section!.SectionName);
Assert.Equal(DisassemblyArchitecture.X64, section.Architecture);
@@ -50,7 +50,7 @@ public class BinaryTextSectionReaderTests
var path = WriteTempFile(data);
try
{
var section = await DisassemblyTextSectionReader.TryReadAsync(path, BinaryFormat.Pe, CancellationToken.None);
var section = await DisassemblyTextSectionReader.TryReadAsync(path, BinaryFormat.Pe, TestContext.Current.CancellationToken);
Assert.NotNull(section);
Assert.Equal(".text", section!.SectionName);
Assert.Equal(DisassemblyArchitecture.X64, section.Architecture);
@@ -73,7 +73,7 @@ public class BinaryTextSectionReaderTests
var path = WriteTempFile(data);
try
{
var section = await DisassemblyTextSectionReader.TryReadAsync(path, BinaryFormat.MachO, CancellationToken.None);
var section = await DisassemblyTextSectionReader.TryReadAsync(path, BinaryFormat.MachO, TestContext.Current.CancellationToken);
Assert.NotNull(section);
Assert.Equal("__text", section!.SectionName);
Assert.Equal(DisassemblyArchitecture.Arm64, section.Architecture);
@@ -98,7 +98,7 @@ public class BinaryTextSectionReaderTests
try
{
var scanner = new BinaryStringLiteralScanner();
var candidates = await scanner.ExtractLibraryCandidatesAsync(path, BinaryFormat.Elf, CancellationToken.None);
var candidates = await scanner.ExtractLibraryCandidatesAsync(path, BinaryFormat.Elf, TestContext.Current.CancellationToken);
Assert.Contains("libfoo.so", candidates);
Assert.Contains("libbar.so.1", candidates);