mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:25:53 +01:00
[PR #879] OLD-7594: bvh_packing_check: fix bvh4-chunk continuation joining and NaN/Inf root checks #915
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#915
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/879
Author: @narekshaghoyandev
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:ubiq-bvh-packing-check-continuations-and-nan📝 Commits (1)
4b32bdcbvh_packing_check: fix bvh4-chunk continuation joining and NaN/Inf root checks📊 Changes
2 files changed (+104 additions, -7 deletions)
View changed files
📝
tests/test_bvh_packing_check.py(+78 -0)📝
tools/bvh_packing_check.py(+26 -7)📄 Description
Reopening my original upstream PR #7594 (refined per
@Envyreand@kapitche's reviews), cleanly rebased ontomain:bvh4-chunkcontinuation joining (scan_window):ZHDRbytes in padding only within a bounded 16-byte slop (prev_end + 16) after a failed_inflate, so a damaged continuation stops cleanly asshort_inputinstead of skipping ahead to glue an unrelated laterrawstream.rawstream (more_kind != "raw", including XML streams).continuationcounts andconsumedoffsets until the joined stream actually reachesdeclared_bytes, so failed joins do not steal unrelated streams._root_equal, union check): Rejects NaN anywhere in root bounds or child union (min([0.0, nan])silently returned0.0) and rejects infinite vs finite BOX32 bounds.Verification
python3 -I tests/test_bvh_packing_check.py -v: 33/33 pass (both new tests fail againstmain).python3 -I scripts/check_no_game_data.py tools/bvh_packing_check.py tests/test_bvh_packing_check.py: clean.python3 -m compileall -q tools/bvh_packing_check.py tests/test_bvh_packing_check.py: clean.Claimed in the coordination issue as: OLD-7594 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135123647)
AI-assisted: yes (Gemini)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.