Thanks for reporting that. I installed the attached somewhat-simpler patch. Does PCRE2 have a similar bug? If so, I suppose this should be reflected when we merge in the patch for bug#47264.