Author: Philip Hazel Date: To: ND CC: Pcre-dev Subject: Re: [pcre-dev] First slot of the offset vector have a wrong value
when PCRE_ERROR_SHORTUTF8 rises
On Sat, 5 Feb 2011, ND wrote:
> The PCRE_ERROR_SHORTUTF8 needs to be a subcase of PCRE_ERROR_PARTIAL, and
> this rule must work in the PCRE_ERROR_SHORTUTF8 case. I don't know how to
> see the real offset vector values in pcretest.exe. But it seems that first
> slot in the offset vector have a wrong value in this case.
I treated PCRE_ERROR_SHORTUTF8 as an error, so the offsets are not set.
> Review this fragment of PCRE code please.
I will do so, but not for some time because I am currently working on
other things.