]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
grammar : fix integer overflow (#17381)
authorPiotr Wilkin (ilintar) <redacted>
Thu, 20 Nov 2025 12:47:04 +0000 (13:47 +0100)
committerGitHub <redacted>
Thu, 20 Nov 2025 12:47:04 +0000 (14:47 +0200)
commit92c0b387a9301ad6f9a180898d970b9cd7831716
tree4e676c371b7f7bc48790143651f183a32470c42b
parent2286a360ff5c6b5edd33e53b5773bdf67bc25d23
grammar : fix integer overflow (#17381)

* Fix DoS / integer overflow

* Remove optional, use INT64_MAX instead as placeholder value (it's technically -1, so it fits :)

* White space

* Actually, since it's unsigned, use UINT64_MAX
src/llama-grammar.cpp