[PR #2214] meshlet_page: validate RPF9 headers before scanning #2218

Open
opened 2026-11-26 21:20:27 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2214
Author: @whoalin1
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: meshlet-rpf9-header-validation


📝 Commits (1)

  • 3837c9f meshlet_page: validate RPF9 headers before scanning

📊 Changes

2 files changed (+39 additions, -3 deletions)

View changed files

📝 tests/test_meshlet_page.py (+32 -0)
📝 tools/meshlet_page.py (+7 -3)

📄 Description

Summary

  • reject inputs shorter than the fixed RPF9 header instead of silently reporting zero pages
  • reject a non-RPF9/9FPR magic before scanning for zlib streams
  • reject a data-start offset outside the archive, while still allowing a valid header-only archive to yield zero pages
  • add synthetic CLI regressions that no report is written for invalid inputs

Item: MESHLET-PAGE-RPF9-HEADER

This carries forward the still-uncarried fix in old-pr/9986, originally written by lucastayaralvarenga-ui, reapplied and verified on current main.

Tests

Under the local machine coordination lock:

  • control: the new invalid-header regressions fail on the unpatched tool (invalid inputs exit 0)
  • fixed: python -I tests/test_meshlet_page.py — 73 tests, OK
  • python -m compileall -q tools/meshlet_page.py tests/test_meshlet_page.py — pass
  • git diff --cached --check — pass

No game files or GPU.

AI-assisted with Devin.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2214 **Author:** [@whoalin1](https://github.com/whoalin1) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `meshlet-rpf9-header-validation` --- ### 📝 Commits (1) - [`3837c9f`](https://github.com/ubiquitarianism/leonida/commit/3837c9f4fcd962ba14a32c09ba467fbafe7e5302) meshlet_page: validate RPF9 headers before scanning ### 📊 Changes **2 files changed** (+39 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_meshlet_page.py` (+32 -0) 📝 `tools/meshlet_page.py` (+7 -3) </details> ### 📄 Description ## Summary - reject inputs shorter than the fixed RPF9 header instead of silently reporting zero pages - reject a non-`RPF9`/`9FPR` magic before scanning for zlib streams - reject a data-start offset outside the archive, while still allowing a valid header-only archive to yield zero pages - add synthetic CLI regressions that no report is written for invalid inputs Item: MESHLET-PAGE-RPF9-HEADER This carries forward the still-uncarried fix in old-pr/9986, originally written by lucastayaralvarenga-ui, reapplied and verified on current main. ## Tests Under the local machine coordination lock: - control: the new invalid-header regressions fail on the unpatched tool (invalid inputs exit 0) - fixed: `python -I tests/test_meshlet_page.py` — 73 tests, OK - `python -m compileall -q tools/meshlet_page.py tests/test_meshlet_page.py` — pass - `git diff --cached --check` — pass No game files or GPU. AI-assisted with Devin. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2218
No description provided.