Skip to content

ListFileLexer: Do not match null bytes in input

Brad King requested to merge brad.king/cmake:lexer-null into master

Extend the fix from !1153 (merged) to apply to all lexer token matches. Replace all . with [^\0\n]. Update all [^...] match expressions to not match \0.

We cannot safely process null bytes in strings.

Fixes: #18124 (closed)

Merge request reports