Skip to content

Regex: Double the maximal allowed size for a regex (to 2^{16}-1)

Deniz Bahadir requested to merge dbahadir/cmake:support_larger_regex into master

While writing unit-tests for CMake itself, which output a lot of messages, I realized that I sadly exceed the maximal supported regex-size quite easily.

Looking into CMake's code, I realized that the regex size seems to be (arbitrarily) limited to 2^{15}-1 (= 32767 bytes).
However, a comment next to that line stated that that limit could probably be raised to 2^{16}-1 (= 65535 bytes) without any problems.

That's what I did. And everything seems to work smoothly.

Merge request reports

Loading