Skip to content

Dev/sraroseck/draft/update tests/unit tests/dwarf attribute value#1171

Open
Sasinkas wants to merge 42 commits into
mainfrom
dev/sraroseck/draft/UpdateTests/UnitTests/DwarfAttributeValue
Open

Dev/sraroseck/draft/update tests/unit tests/dwarf attribute value#1171
Sasinkas wants to merge 42 commits into
mainfrom
dev/sraroseck/draft/UpdateTests/UnitTests/DwarfAttributeValue

Conversation

@Sasinkas

@Sasinkas Sasinkas commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Bug Fix
DwarfLineNumberProgram.cs — Fixed off-by-one error in directory index bounds check (<= directories.Count - 1 → <= directories.Count)
New Integration Test Project
Test.IntegrationTests.BinSkim.Driver (new project added to solution)
BinSkimRunner.cs — Test harness that launches BinSkim as an external process, captures exit code/stdout/stderr/SARIF output
AnalyzeCommandIntegrationTests.cs — End-to-end integration tests for the analyze command
BinSkim.Integration.Tests.ps1 — PowerShell/Pester-based integration tests
New Unit Tests (Dwarf/ELF)
DwarfAttributeValueTests.cs — Tests for DWARF attribute value parsing
DwarfCommonInformationEntryTests.cs — Tests for CIE (Common Information Entry) parsing
DwarfCompilationUnitFormTests.cs — Extended tests for compilation unit form handling
DwarfFrameDescriptionEntryTests.cs — Tests for FDE (Frame Description Entry) parsing
DwarfLineNumberProgramTests.cs — Tests for line number program logic (relates to the bug fix)
DwarfSymbolProviderTests.cs — Tests for the DWARF symbol provider
DwarfSymbolTests.cs — Tests for DWARF symbol parsing
DwarfTestHelpers.cs — Shared test helper utilities
ElfBinaryTests.cs — Tests for ELF binary parsing
Test Reorganization
RuleTests.cs — Refactored (440 lines changed, likely reducing noise / restructuring)
Test sample files moved into Error/ and Warning/ subdirectories for clearer categorization of expected results (SHA1-related test binaries)
Build/Infra
BuildPackages.cmd — Defaults Configuration to Release if not set
BinSkim.sln — Added the new integration test project

Comment thread src/Test.IntegrationTests.BinSkim.Driver/AnalyzeCommandIntegrationTests.cs Dismissed
Comment thread src/Test.IntegrationTests.BinSkim.Driver/BinSkimRunner.cs Fixed
Comment thread src/Test.IntegrationTests.BinSkim.Driver/BinSkimRunner.cs Dismissed
Comment thread src/Test.IntegrationTests.BinSkim.Driver/AnalyzeCommandIntegrationTests.cs Dismissed
Comment thread src/Test.IntegrationTests.BinSkim.Driver/AnalyzeCommandIntegrationTests.cs Dismissed
Comment thread src/Test.IntegrationTests.BinSkim.Driver/AnalyzeCommandIntegrationTests.cs Dismissed
Sasinkas added 6 commits May 28, 2026 14:18
- Introduced Managed_netcoreapp3.1_portable_exe_sha1.pdb to support secure source code hashing tests.
- Added Managed_netstandard2.0_portable_sha1.dll and its corresponding PDB file for .NET Standard 2.0 to enhance testing capabilities.
Comment thread src/Test.IntegrationTests.BinSkim.Driver/AnalyzeCommandIntegrationTests.cs Dismissed
Comment thread src/Test.IntegrationTests.BinSkim.Driver/BinSkimRunner.cs Fixed
Sasinkas and others added 5 commits June 8, 2026 14:48
…ath.Combine' may silently drop its earlier arguments'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ath.Combine' may silently drop its earlier arguments'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ath.Combine' may silently drop its earlier arguments'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ath.Combine' may silently drop its earlier arguments'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Sasinkas and others added 3 commits June 8, 2026 20:43
…ath.Combine' may silently drop its earlier arguments'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ath.Combine' may silently drop its earlier arguments'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@Sasinkas Sasinkas marked this pull request as ready for review June 8, 2026 18:45
@Sasinkas Sasinkas requested a review from a team as a code owner June 8, 2026 18:45
Sasinkas and others added 13 commits June 8, 2026 20:47
…ath.Combine' may silently drop its earlier arguments'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ath.Combine' may silently drop its earlier arguments'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ath.Combine' may silently drop its earlier arguments'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ath.Combine' may silently drop its earlier arguments'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ath.Combine' may silently drop its earlier arguments'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…eValue' of https://github.com/microsoft/binskim into dev/sraroseck/draft/UpdateTests/UnitTests/DwarfAttributeValue
…ath.Combine' may silently drop its earlier arguments'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ath.Combine' may silently drop its earlier arguments'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
…ath.Combine' may silently drop its earlier arguments'

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants