mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #272] raytracing: fix BVH index building and validation #324
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#324
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/272
Author: @kotekompotek
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:work/build-1533-bvh-index📝 Commits (1)
070f952bvh_index: require 208-byte head and mark truncated heads (BUILD-1533)📊 Changes
2 files changed (+26 additions, -1 deletions)
View changed files
📝
tests/test_bvh_index.py(+23 -0)📝
tools/bvh_index.py(+3 -1)📄 Description
Claimed in the coordination issue as: BUILD-1533 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7140050149)
What and why
main(commitccafaeeaa).classify()intools/bvh_index.pyon< 208-byte payloads soinstance208does not crash withstruct.error, falling back todescriptorwhen>= 0x30descriptor header bytes are available, and marks raw< min(size, HEAD)heads withsignature="truncated-head"andtruncated_head=True.test_truncated_head_on_208_byte_payload_does_not_crashand CLI--max-inflate 128checks oninstance_payloadandbvh_payload) intests/test_bvh_index.py.Tested
python -I tests/test_bvh_index.py(45 tests OK, 1 skippedwithout game archive) on commitccafaeeaa.tests/test_docs_*.py(OK) on commitccafaeeaa.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.