You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gguf : reject empty metadata key names during parsing
Fixes#20873: a malformed GGUF file with a zero-length key string
triggers GGML_ASSERT(!key.empty()) in the gguf_kv constructor.
Add an early check in gguf_init_from_file_ptr that rejects empty
keys with an error log, consistent with existing duplicate-key
and bad-key-size validation.
Three new handcrafted test cases:
- KV_EMPTY_KEY: all keys are empty
- KV_EMPTY_KEY_ONLY_FIRST: only the first key is empty
- KV_EMPTY_KEY_ONLY_MID: a middle key is empty
0 commit comments