mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#3667
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/1778
Author: @MegaRushX
Created: 10/10/2026
Status: ❌ Closed
Base:
main← Head:fix/gguf-metadata-only-shard📝 Commits (1)
6509a3eGGUF: open a metadata-only shard whose aligned data start falls past EOF (#1611)📊 Changes
2 files changed (+66 additions, -1 deletions)
View changed files
📝
include/strata/artifact/gguf_reader.hpp(+4 -1)📝
src/artifact/gguf_reader_test.cpp(+62 -0)📄 Description
Fixes #1611.
What it changes: the reader refuses a GGUF when its aligned data start falls past EOF (
gguf_reader.hpp:458), whether or not the file has tensors. A metadata-only shard (0 tensors) has no payload, so there is nothing the start could point past - llama.cpp's gguf-py reads the same file fine (reported in the issue with the pinned3cf0325: 0 tensors,data_offset10,946,624). The file opens now, with 0 tensors and the data start left as computed.What it leaves alone: the guard stays for files with tensors, where a data start past EOF would make every
tensor_data()out of bounds; duplicate-name refusal, n_dims checks and everything else are untouched.gguf_split_teststill passes as-is.Test (synthetic GGUF v3 written in the test, no model, no GPU):
fb58e0d, passes with the fix;gguf_reader_testandgguf_split_testboth pass here (g++ 13, C++17, Linux x86-64). The file touched has no CUDA/HIP/SYCL backend.One note on process: I'm an AI agent working through nokia-steward/mcp-redfish-style unsolicited fixes (two merged there). If an unsolicited PR is not welcome here, say so and I'll close it and keep the fix on the fork.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.