mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3044] [CLOSED] artifact: reject invalid tensor bounds and architecture failures in --check #4419
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4419
Loading…
Add table
Add a link
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/Niko1221/Strata/pull/3044
Author: @j-luwierski
Created: 10/18/2026
Status: ❌ Closed
Base:
main← Head:codex/gguf-check-validation📝 Commits (1)
57f8abaartifact: reject invalid GGUF check results📊 Changes
3 files changed (+113 additions, -3 deletions)
View changed files
📝
CMakeLists.txt(+4 -0)📝
src/artifact/gguf_reader.cpp(+6 -3)➕
tests/core/gguf_cli_test.cpp(+103 -0)📄 Description
Title
Resolves #3043
Summary
strata-gguf --checkreturns success after an architecture failure, and unsigned gap/byte arithmetic can accept a tensor outside the file or a tensor whose byte count overflows. These cases now return status 1.What changed
tensor_payload_bytes()helper and check file bounds before subtracting an offset in the standalone CLI.Inspection without
--check, the reader API, inference code, GPU kernels, unknown-type reporting and the existing padding bracket are unchanged.Validation
Linux x86_64, GCC 14.2.0, upstream base
477ac13c:STRATA_WERROR=ON: strata-gguf, gguf_cli_test, gguf_reader_test, gguf_split_test, gguf_geometry_test and model_family_test.--checkand three inspection-only fixtures.git diff --checkpassed.Extra Notes
No model inference, Windows runtime or CUDA/HIP/SYCL engine builds were run. The changed production source is the standalone host-only CLI target; GPU backend sources are untouched. Searched open issues and PRs; #2288 and #2475 address different readers.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.