Skip to content

Comments

Add round-trip tests for testing compound file integrity#44

Merged
jozefizso merged 2 commits intoNetOfficeFw:mainfrom
m-kovac:feature/Add-round-trip-tests-for-compound-file-integrity
Jan 16, 2026
Merged

Add round-trip tests for testing compound file integrity#44
jozefizso merged 2 commits intoNetOfficeFw:mainfrom
m-kovac:feature/Add-round-trip-tests-for-compound-file-integrity

Conversation

@m-kovac
Copy link
Contributor

@m-kovac m-kovac commented Jan 15, 2026

These tests compile VBA projects and verify they can be decompiled. Catches compound file corruption where streams exist but directory entries have incorrect size/offset metadata, making the VBA code unreadable despite the file appearing valid.

Important:

these tests are based on OpenMcdf v2.4.1 and ideally merged after #43. When the package is updated above v3, the tests must be updated with new API, but should catch the compound file corruption - the decompilation should not work.

@m-kovac m-kovac requested a review from jozefizso January 15, 2026 13:49
@m-kovac m-kovac added the enhancement New feature or request label Jan 15, 2026
@jozefizso jozefizso requested a review from DominikPalo January 16, 2026 09:30
@jozefizso
Copy link
Member

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. More of your lovely PRs please.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jozefizso jozefizso self-assigned this Jan 16, 2026
@jozefizso jozefizso added this to the v2.0.1 milestone Jan 16, 2026
Add tests that compile VBA projects and verify they can be decompiled. Catches compound file corruption where streams exist but directory entries have incorrect size/offset metadata, making the VBA code unreadable despite the file appearing valid.
@jozefizso jozefizso force-pushed the feature/Add-round-trip-tests-for-compound-file-integrity branch from a2f1fd6 to 5cee80d Compare January 16, 2026 12:17
@jozefizso jozefizso merged commit dc080fe into NetOfficeFw:main Jan 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add test to validate VBA OLE storage streams inside compiled add-ins

2 participants