llama.cpp
6d0716cf - gguf: document and test the NUL byte rule for keys and tensor names (#33443)

Commit
7 hours ago
gguf: document and test the NUL byte rule for keys and tensor names (#33443) State in the format description at the top of gguf.h that keys and tensor names must not contain null bytes while string values can. Add handcrafted test cases for both: a key with an embedded NUL placed before the key it would shadow, and tensor names that only differ after a NUL. Both files are now expected to be rejected.
Parents
Loading