[GH-ISSUE #3043] [Bug]: strata-gguf --check returns success for invalid architecture and wrapped tensor bounds #1219

Closed
opened 2026-11-04 01:49:28 +07:00 by bsakaguchi · 1 comment
Owner

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 --check returns exit status 0 for failed checks:

  • With general.architecture=llama, it prints architecture guard: FAIL but returns 0. Missing architecture metadata has the same result.
  • For a single F32[1] tensor in a four-byte payload, offset UINT64_MAX - 3 wraps payload - offset to 8. The geometry bracket reports zero failures and returns 0.
  • Changing that tensor dimension to 2^62 wraps 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

unsupported architecture: FAIL (exit 0, expected 1)
missing architecture: FAIL (exit 0, expected 1)
offset that wraps the last gap to eight bytes: FAIL (exit 0, expected 1)
tensor byte count that wraps to zero: FAIL (exit 0, expected 1)

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.

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 --check` returns exit status 0 for failed checks: - With `general.architecture=llama`, it prints `architecture guard: FAIL` but returns 0. Missing architecture metadata has the same result. - For a single F32[1] tensor in a four-byte payload, offset `UINT64_MAX - 3` wraps `payload - offset` to 8. The geometry bracket reports zero failures and returns 0. - Changing that tensor dimension to `2^62` wraps 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 ```text unsupported architecture: FAIL (exit 0, expected 1) missing architecture: FAIL (exit 0, expected 1) offset that wraps the last gap to eight bytes: FAIL (exit 0, expected 1) tensor byte count that wraps to zero: FAIL (exit 0, expected 1) ``` 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.
Author
Owner

@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:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271436306 --> @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: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1219
No description provided.