llama.cpp
dbe4c3ed - chat-peg-parser : clear current_tool when pending_tool_call is reset (#29942)

Commit
5 days ago
chat-peg-parser : clear current_tool when pending_tool_call is reset (#29942) A TOOL_ID node that arrives after TOOL_CLOSE wrote through `current_tool`, which still pointed into the just-destroyed `pending_tool_call` optional (use-after-free, then a second free of the id buffer). Clear the pointer on reset.
Author
Parents
Loading