When a character of the subject folds to fewer bytes than the pattern has, the loop continued after the subject was exhausted. Fail when no subject is left.make_now_just (Hiroya Fujinami)
Reject look-behinds whose length does not fit in int, saturate threshold_len, avoid casting an infinite distance to int in the optimizer, check the relative number of \g<+n>, and use unsigned shifts in BIT_STATUS_ON_AT and int arithmetic...make_now_just (Hiroya Fujinami)
Do not take a code point that is negative as int (a four-byte character of GB18030) for ASCII and index the ASCII tables with it.make_now_just (Hiroya Fujinami)