Skip to content

[#24] throw exception/log error for file separator characters#25

Merged
iadgovuser59 merged 9 commits intomainfrom
issue-24
Jan 30, 2026
Merged

[#24] throw exception/log error for file separator characters#25
iadgovuser59 merged 9 commits intomainfrom
issue-24

Conversation

@chubtub
Copy link
Collaborator

@chubtub chubtub commented Jan 12, 2026

Major changes include:

  • a new method in ValidatorArgFile to detect '/' and '\' in support RIM filenames
  • parse during verify
  • update pcrim.sh test script and accompanying data files

Testing:

Test 2 in the updated test script is an example of how the create command will handle invalid support RIM filenames. rim_fields_bad_supportRIM.json specifies a support RIM with name pcrim/TpmLog.bin. When this config file is passed to the rimtool the expected error message is,
Support RIM(s) were found with file separator characters in their names, please remove and retry.

Closes #24

@chubtub chubtub requested a review from iadgovuser26 January 12, 2026 20:46
@chubtub chubtub self-assigned this Jan 12, 2026
@chubtub chubtub changed the title [#24] WIP: throw exception/log error for file separator characters [#24] throw exception/log error for file separator characters Jan 29, 2026
@iadgovuser59 iadgovuser59 requested review from iadgovuser59 and removed request for iadgovuser26 January 30, 2026 22:48
@iadgovuser59 iadgovuser59 merged commit 4f2af45 into main Jan 30, 2026
1 check passed
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.

PCRIM support RIM file name should not contain file separators

2 participants

Comments