Files
llama.cpp/src
hourhl 4a7ee3126d fix: OOB reads in UGM tokenizer (precompiled_charsmap handling) (#18750)
* fix: OOB reads in UGM tokenizer (precompiled_charsmap handling)

- Validate minimum size (4 bytes) before reading xcda_blob_size
- Use strnlen with bounds check instead of unsafe strlen

Both issues allow heap-buffer-overflow from malicious T5/UGM GGUF files.

* Replace unsafe strnlen() with a bounds-checked loop that scans for \0 within the remaining array size.

* move bounds checks to load

* typo merge fix

---------

Co-authored-by: hourhl <hourhl8200@gmail.com>
Co-authored-by: Sigbjørn Skjæret <1629204+CISC@users.noreply.github.com>
2026-07-08 08:02:09 +03:00
..
2026-06-29 16:58:51 +08:00
2026-06-29 16:58:51 +08:00
2026-06-29 16:58:51 +08:00
2026-06-29 16:58:51 +08:00
2026-06-29 16:58:51 +08:00
2026-06-29 16:58:51 +08:00
2026-06-29 16:58:51 +08:00
2026-06-29 16:58:51 +08:00
2026-06-29 16:58:51 +08:00
2026-06-29 16:58:51 +08:00
2026-06-29 16:58:51 +08:00
2026-06-07 20:50:54 +08:00
2026-04-03 10:33:03 +02:00