b8571
📦 llama-cppView on GitHub →
🐛 2 fixes🔧 2 symbols
Summary
This release fixes a critical bug where complex regex patterns containing non-capturing groups in JSON schemas caused crashes during conversion. The fix enhances the regex parser's robustness across various platforms.
🐛 Bug Fixes
- Fixed a crash (SIGSEGV) in the regex-to-grammar converter (_visit_pattern) when JSON schema 'pattern' fields contained non-capturing groups (?:...).
- Improved robustness of regex parsing by safely skipping unsupported syntax like (?=, ?!) to matching ')' while correctly handling escaped characters and parenthesis depth.