bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18580: [PATCH] dfa: check end of an input buffer after a transition


From: Jim Meyering
Subject: bug#18580: [PATCH] dfa: check end of an input buffer after a transition in non-UTF8 multibyte locales
Date: Thu, 2 Oct 2014 07:53:28 -0700

On Wed, Oct 1, 2014 at 8:42 AM, Norihiro Tanaka <address@hidden> wrote:
> Norihiro Tanaka wrote:
>> I haven't found a clear test case yet.
>
> I haven't found a clear test case yet, but I have already found to run
> over the end of the input buffer with below.
>
>   $ printf '' | env LC_ALL=zh_CN src/grep -z .

Thanks. This will work, if nothing better comes up, since
when running ASAN-enabled binaries, this evokes an abort:

   LC_ALL=zh_CN src/grep -z . < /dev/null

[note that I dropped the "env" and using input redirection
is slightly better for debugging than using a pipe]





reply via email to

[Prev in Thread] Current Thread [Next in Thread]