Repository navigation
fix(artifacts): bound embedded GLB images by the declared buffer length - #15207
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Medium impact] The PR appears safe to merge. SummaryEmbedded GLB images must now fit both
Reviews (1) · Last reviewed commit: "fix(artifacts): bound GLB embedded image..." · Reviewed by Greptile |
|
Thanks, merged! Logical buffer bounds now preserve the raw BIN padding. All 23 selected tests and CI passed. |
* commit '81657ccedea257a7138c11908a4681dc5986eca3': fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206) fix(screenshots): report the PNG comparison memory allowance (morluto#15217) fix(process): compare Windows server paths by native realpath (morluto#15044) fix(firmware): recheck decoded member source on completion (morluto#15211) fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208) fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207) perf(ci): confirm test-only macOS selection on Linux (morluto#15203) fix(paths): reject Windows console device names (morluto#14972) fix(artifacts): classify member presence from the absent side coverage (morluto#15200) fix(tar): account for retained pax owner names (morluto#15195)
…5210-evidence-completion * commit 'acce96912d7bf048f9a5499ecd960c370062306f': fix(javascript): respect Node HTTP path validation (morluto#9684) fix(windows): reject native addons with unusable delay-import tables (morluto#15216) feat(artifacts): inventory Android super image metadata (morluto#14928) fix(paths): reject dotted console device names for portability (morluto#15220) fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206) fix(screenshots): report the PNG comparison memory allowance (morluto#15217) fix(process): compare Windows server paths by native realpath (morluto#15044) fix(firmware): recheck decoded member source on completion (morluto#15211) fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208) fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207) perf(ci): confirm test-only macOS selection on Linux (morluto#15203) fix(paths): reject Windows console device names (morluto#14972)
…5219-evidence-inspection * commit 'd0694fb5b7d8426d7c776f6ecc904f8e03839976': fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205) perf(png): reuse scanline storage in screenshot comparisons (morluto#15215) fix(javascript): respect Node HTTP path validation (morluto#9684) fix(windows): reject native addons with unusable delay-import tables (morluto#15216) feat(artifacts): inventory Android super image metadata (morluto#14928) fix(paths): reject dotted console device names for portability (morluto#15220) fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206) fix(screenshots): report the PNG comparison memory allowance (morluto#15217) fix(process): compare Windows server paths by native realpath (morluto#15044) fix(firmware): recheck decoded member source on completion (morluto#15211) fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208) fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207) perf(ci): confirm test-only macOS selection on Linux (morluto#15203)
…180-warc-archive * commit '5f15fdf457a890a149cbe574cce96e32422c1904': (206 commits) perf(evidence): inspect retained records without building a bundle (morluto#15219) fix(process): report denied inspection as typed cleanup failures (morluto#9261) perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210) fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205) perf(png): reuse scanline storage in screenshot comparisons (morluto#15215) fix(javascript): respect Node HTTP path validation (morluto#9684) fix(windows): reject native addons with unusable delay-import tables (morluto#15216) feat(artifacts): inventory Android super image metadata (morluto#14928) fix(paths): reject dotted console device names for portability (morluto#15220) fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206) fix(screenshots): report the PNG comparison memory allowance (morluto#15217) fix(process): compare Windows server paths by native realpath (morluto#15044) fix(firmware): recheck decoded member source on completion (morluto#15211) fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208) fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207) perf(ci): confirm test-only macOS selection on Linux (morluto#15203) fix(paths): reject Windows console device names (morluto#14972) fix(artifacts): classify member presence from the absent side coverage (morluto#15200) fix(tar): account for retained pax owner names (morluto#15195) fix(conformance): validate paired fixture count expectations (morluto#14125) ...
…186-evtx-archive * commit '5f15fdf457a890a149cbe574cce96e32422c1904': (89 commits) perf(evidence): inspect retained records without building a bundle (morluto#15219) fix(process): report denied inspection as typed cleanup failures (morluto#9261) perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210) fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205) perf(png): reuse scanline storage in screenshot comparisons (morluto#15215) fix(javascript): respect Node HTTP path validation (morluto#9684) fix(windows): reject native addons with unusable delay-import tables (morluto#15216) feat(artifacts): inventory Android super image metadata (morluto#14928) fix(paths): reject dotted console device names for portability (morluto#15220) fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206) fix(screenshots): report the PNG comparison memory allowance (morluto#15217) fix(process): compare Windows server paths by native realpath (morluto#15044) fix(firmware): recheck decoded member source on completion (morluto#15211) fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208) fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207) perf(ci): confirm test-only macOS selection on Linux (morluto#15203) fix(paths): reject Windows console device names (morluto#14972) fix(artifacts): classify member presence from the absent side coverage (morluto#15200) fix(tar): account for retained pax owner names (morluto#15195) fix(conformance): validate paired fixture count expectations (morluto#14125) ...
…4075-env-argv0 * commit 'aeea7c25ede5c5e6b16198e60c0eb0475ff6f5d8': (738 commits) fix(hopper): clarify publisher verification failures fix(analysis-view): keep PTX text pages on Unicode boundaries (morluto#15222) feat(mcp): advertise each tool's family in tools/list _meta (morluto#7154) perf(evidence): inspect retained records without building a bundle (morluto#15219) fix(process): report denied inspection as typed cleanup failures (morluto#9261) perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210) fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205) perf(png): reuse scanline storage in screenshot comparisons (morluto#15215) fix(javascript): respect Node HTTP path validation (morluto#9684) fix(windows): reject native addons with unusable delay-import tables (morluto#15216) feat(artifacts): inventory Android super image metadata (morluto#14928) fix(paths): reject dotted console device names for portability (morluto#15220) fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206) fix(screenshots): report the PNG comparison memory allowance (morluto#15217) fix(process): compare Windows server paths by native realpath (morluto#15044) fix(firmware): recheck decoded member source on completion (morluto#15211) fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208) fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207) perf(ci): confirm test-only macOS selection on Linux (morluto#15203) fix(paths): reject Windows console device names (morluto#14972) ...
…0374-skill-guidance * commit 'aeea7c25ede5c5e6b16198e60c0eb0475ff6f5d8': (3508 commits) fix(hopper): clarify publisher verification failures fix(analysis-view): keep PTX text pages on Unicode boundaries (morluto#15222) feat(mcp): advertise each tool's family in tools/list _meta (morluto#7154) perf(evidence): inspect retained records without building a bundle (morluto#15219) fix(process): report denied inspection as typed cleanup failures (morluto#9261) perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210) fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205) perf(png): reuse scanline storage in screenshot comparisons (morluto#15215) fix(javascript): respect Node HTTP path validation (morluto#9684) fix(windows): reject native addons with unusable delay-import tables (morluto#15216) feat(artifacts): inventory Android super image metadata (morluto#14928) fix(paths): reject dotted console device names for portability (morluto#15220) fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206) fix(screenshots): report the PNG comparison memory allowance (morluto#15217) fix(process): compare Windows server paths by native realpath (morluto#15044) fix(firmware): recheck decoded member source on completion (morluto#15211) fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208) fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207) perf(ci): confirm test-only macOS selection on Linux (morluto#15203) fix(paths): reject Windows console device names (morluto#14972) ...
…063-native-alias-cancellation * commit 'aeea7c25ede5c5e6b16198e60c0eb0475ff6f5d8': (881 commits) fix(hopper): clarify publisher verification failures fix(analysis-view): keep PTX text pages on Unicode boundaries (morluto#15222) feat(mcp): advertise each tool's family in tools/list _meta (morluto#7154) perf(evidence): inspect retained records without building a bundle (morluto#15219) fix(process): report denied inspection as typed cleanup failures (morluto#9261) perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210) fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205) perf(png): reuse scanline storage in screenshot comparisons (morluto#15215) fix(javascript): respect Node HTTP path validation (morluto#9684) fix(windows): reject native addons with unusable delay-import tables (morluto#15216) feat(artifacts): inventory Android super image metadata (morluto#14928) fix(paths): reject dotted console device names for portability (morluto#15220) fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206) fix(screenshots): report the PNG comparison memory allowance (morluto#15217) fix(process): compare Windows server paths by native realpath (morluto#15044) fix(firmware): recheck decoded member source on completion (morluto#15211) fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208) fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207) perf(ci): confirm test-only macOS selection on Linux (morluto#15203) fix(paths): reject Windows console device names (morluto#14972) ...
…279-mcp-config-validation * commit 'aeea7c25ede5c5e6b16198e60c0eb0475ff6f5d8': (2392 commits) fix(hopper): clarify publisher verification failures fix(analysis-view): keep PTX text pages on Unicode boundaries (morluto#15222) feat(mcp): advertise each tool's family in tools/list _meta (morluto#7154) perf(evidence): inspect retained records without building a bundle (morluto#15219) fix(process): report denied inspection as typed cleanup failures (morluto#9261) perf(mcp): complete retained Evidence without rebuilding bundles (morluto#15210) fix(agentenv): stop dry-run tarball reads on cancellation (morluto#15205) perf(png): reuse scanline storage in screenshot comparisons (morluto#15215) fix(javascript): respect Node HTTP path validation (morluto#9684) fix(windows): reject native addons with unusable delay-import tables (morluto#15216) feat(artifacts): inventory Android super image metadata (morluto#14928) fix(paths): reject dotted console device names for portability (morluto#15220) fix(analysis-view): return continuation for GPU pages at the byte limit (morluto#15206) fix(screenshots): report the PNG comparison memory allowance (morluto#15217) fix(process): compare Windows server paths by native realpath (morluto#15044) fix(firmware): recheck decoded member source on completion (morluto#15211) fix(artifacts): check signed BC4 and BC5 DDS payload extents (morluto#15208) fix(artifacts): bound embedded GLB images by the declared buffer length (morluto#15207) perf(ci): confirm test-only macOS selection on Linux (morluto#15203) fix(paths): reject Windows console device names (morluto#14972) ...
Summary
Embedded image regions now have to fit both the logical glTF buffer and its physical BIN chunk. The chunk remains available in full, including alignment padding.
Problem and expected behavior
A valid 69-byte PNG occupies a buffer of 69 bytes, stored in a 72-byte BIN chunk. On the base commit, adding an image view that overlaps the last three bytes can create a second verified image and report complete coverage. Khronos glTF Validator reports BUFFER_VIEW_TOO_LONG at the offending view. The corrected inventory retains the first PNG with its original SHA-256, omits the out-of-range view and reports unknown coverage.
Contract and boundary impact
The existing GLB layout reader uses the smaller of the declared buffer length and the physical chunk length before handing a view to the shared region inventory. An unavailable length leaves that view unresolved. URI-backed image handling, chunk enumeration and physical-file extent checks retain their original owners. This is a correction to the existing read-only file inventory used by the CLI and MCP. The relevant existing implementations were checked in #14248, #14297, #14340, #15150 and #15181 and on the latest main. The contribution adds no provider or execution capability.
What should REA do?
Evidence and regression coverage
Validation performed
Compatibility, safety, and release
Existing command, tool and metadata schemas are preserved. File inventory, region lengths and hashes were exercised on macOS. GUI model import, GPU rendering, other host operating systems and performance were outside this run.
Author readiness
Human owner: @xu91102
Author checklist (completed by the PR author before requesting review)
type(scope): outcome.REA_runtime setting with a default, floor, and maximum, unless a fixed ceiling has a stated reason. See Adding a runtime setting.