Skip to content

fix(vba): update check_variable_record to handle records that are optional#614

Merged
jmcnamara merged 1 commit intotafia:masterfrom
alexander-beedie:fix-optional-records
Mar 6, 2026
Merged

fix(vba): update check_variable_record to handle records that are optional#614
jmcnamara merged 1 commit intotafia:masterfrom
alexander-beedie:fix-optional-records

Conversation

@alexander-beedie
Copy link
Contributor

@alexander-beedie alexander-beedie commented Mar 2, 2026

Fixes #581.

  • Several of the module records are optional1; for variable-sized records, that includes NameUnicodeRecord.
  • Updated check_variable_record to account for this (ReadOnlyRecord and PrivateRecord are also optional, but they're fixed-size and their optionality is handled in the read_modules loop).
  • Labelled all the byte IDs in the read_modules loop (including expected size) to help future referencing.
  • Added test coverage, using the workbook provided in the original issue.

Footnotes

  1. Reference: 2.3.4.2.3.2 MODULE Record

@alexander-beedie alexander-beedie changed the title fix: update check_variable_record to handle records that are optional fix(vba): update check_variable_record to handle records that are optional Mar 2, 2026
@alexander-beedie alexander-beedie force-pushed the fix-optional-records branch 6 times, most recently from a9f10bc to 668414d Compare March 2, 2026 12:03
@jmcnamara jmcnamara merged commit dff6e2c into tafia:master Mar 6, 2026
6 checks passed
@jmcnamara
Copy link
Collaborator

Merged. Thanks.

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.

Bug: error reading vba project

2 participants