mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #454] [MERGED] rbf0_encode: refuse invalid descriptor names during batch export #506
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#506
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/454
Author: @EdenBendheim
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @QemmHD
Base:
main← Head:ubiq/rbf0-encode-name-type📝 Commits (1)
bbf2cf1rbf0_encode: refuse invalid descriptor names📊 Changes
2 files changed (+64 additions, -3 deletions)
View changed files
📝
tests/test_rbf0_encode.py(+48 -0)📝
tools/rbf0_encode.py(+16 -3)📄 Description
Claim: https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7123164705
What changed
tools/rbf0_encode.py: Validate record and descriptor-tablenamevalues before encoding so non-string names raiseEncodeError("value", ...)and lone surrogates raiseEncodeError("utf8", ...)instead of escaping withAttributeError. Omitted descriptor-table names continue falling back to the record name.tests/test_rbf0_encode.py: Synthetic tests covering non-string names, lone surrogates, descriptor reuse, omitted-name fallback, and batch refusal leaving subsequent valid resources written byte-for-byte.Testing & Disclosure
gpt-6.2-sol) and reviewed with Codex (gpt-6.2-astra).ubiquitarianism/leonidamain(8f481cf16): all 4tests/test_rbf0*.pysuites (105/105),check_no_game_data.py, LF check — all passed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.