Skip to content

gguf : reject empty metadata keys - #24917

Merged
JohannesGaessler merged 1 commit into
ggml-org:masterfrom
rohitmahesh1:fix/gguf-empty-metadata-key
Jul 11, 2026
Merged

JohannesGaessler merged 1 commit into
ggml-org:masterfrom
rohitmahesh1:fix/gguf-empty-metadata-key

Conversation

@rohitmahesh1

@rohitmahesh1 rohitmahesh1 commented Jun 22, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Fixes #24884.

Reject GGUF files with empty metadata keys during parsing instead of allowing them to reach the gguf_kv.

Additional information

Tested against original empty-metadata-key.gguf, no process abortion

Requirements

@github-actions github-actions Bot added testing Everything test related ggml changes relating to the ggml tensor library for machine learning labels Jun 22, 2026
@ggml-gh-bot

ggml-gh-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

Hi @rohitmahesh1, thanks for your contribution!

Per our contribution guidelines, the automated PR checker found the following issue(s) that need your attention:

  • Multiple open PRs from a new contributor: We limit new contributors (those without a previously merged PR) to 1 open PR at a time. You currently have 3 open PRs.

Please note that maintainers reserve the right to make final decisions on PRs. If you believe there is a mistake, please comment below.

@JohannesGaessler

Copy link
Copy Markdown
Contributor

@ggml-org/maintainers can I get a second approval, please?

@JohannesGaessler
JohannesGaessler merged commit d72bfa3 into ggml-org:master Jul 11, 2026
25 checks passed
satindergrewal pushed a commit to satindergrewal/llama.cpp that referenced this pull request Aug 12, 2026
zbrad pushed a commit to zbrad/llama.cpp that referenced this pull request Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Eval bug: Empty GGUF metadata key aborts loader instead of returning a load error

3 participants