Autor: Zoltán Herczeg Datum: To: ND CC: Pcre-dev Betreff: Re: [pcre-dev] \K in lookahead assertion gives unpredictable result
Hi,
>> Anyway I suspect the result is correct (it start with b)
>>
>I don't think so. Result must not have 'b'.
Did you see my other mail yesterday? I explained there that pcretest yields 'b' for testing purposes (it handles startoffset is greater than endoffset cases this way). I also described how this issue can be debugged. The 'ab' input should be terminated by zero (I showed where the zero is appended), but it seems something changes that value. Perhaps a read/write breakpoint could help. Could you check that the zero is appended in your case as well? If so, could you send me a backtrace when the zero is changed?