mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3043] [Bug]: strata-gguf --check returns success for invalid architecture and wrapped tensor bounds #1219
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#1219
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?
Originally created by @j-luwierski on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3043
What happened
On upstream main
477ac13c,strata-gguf FILE --checkreturns exit status 0 for failed checks:general.architecture=llama, it printsarchitecture guard: FAILbut returns 0. Missing architecture metadata has the same result.UINT64_MAX - 3wrapspayload - offsetto 8. The geometry bracket reports zero failures and returns 0.2^62wraps the F32 byte count to zero and also passes the bracket.Expected: status 1 for failed architecture checks, out-of-file known tensor payloads and overflowing tensor byte counts.
A regression invoking the real C++ CLI entry point on synthetic GGUFs fails in these four cases on upstream and passes with the proposed fix. It also covers valid files, ordinary truncation and inspection without
--check.Strata version, GPU, OS
Upstream main
477ac13c(0.1.45), Linux x86_64, GCC 14.2.0. CPU-only reproduction; no model weights or GPU required.Engine log
Searched open issues and PRs for strata-gguf, gguf_reader.cpp, architecture checks and offsets. Related #2288 covers the Python reader and #2475 covers the Metal reader; this report concerns only src/artifact/gguf_reader.cpp CLI validation.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for taking the time to report this.
We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.