home/test/regression/4859-regex-invalid-behaviour/rc
Maxime Coste cb3512f01e Grow dual thread stack after pushing a thread on the next queue
The previous code was assuming it was fine to push_next without
growing, which used to be the case with the previous implementation
because we always have poped the current thread that we try to push.

However now that we use a ring-buffer, m_next_begin == m_next_end can
either mean full, or empty. We solve this by assuming it means empty
and never allowing the buffer to become full, which means we need
to grow after pushing to next if we get full.

Fixes #4859
2023-03-13 22:45:19 +11:00

2 lines
49 B
Plaintext

reg slash '(?S)((^ {13}d.*\n)(^ {13}.*\n)*?)?^.'