--- Begin Message ---
Subject: |
[PATCH] dfa: check end of an input buffer after a transition in non-UTF8 multibyte locales |
Date: |
Mon, 29 Sep 2014 09:11:17 +0900 |
If a state has neither ANYCHAR nor MBCSET and next character is eolbyte,
the next state is -1. So exit loop, checked whether a position is end
of buffer or not.
However, if a state has either ANYCHAR or MBCSET, even if next character
is eolbyte, next state mayn't be -1. So we must check whether a
position is end of buffer or not, otherwise may run over the buffer.
0001-dfa-check-end-of-an-input-buffer-after-a-transition-.patch
Description: Text document
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#18580: [PATCH] dfa: check end of an input buffer after a transition in non-UTF8 multibyte locales |
Date: |
Thu, 09 Oct 2014 07:36:30 +0900 |
Jim Meyering <address@hidden> wrote:
> I used git bisect to determine precisely where this happened:
>
> git bisect start v2.19 v2.18
> git bisect run sh -c 'make WERROR_CFLAGS= && test $(printf "a\naa\n"
> | LC_ALL=zh_CN src/grep ..|wc -l) = 1'
>
> It found v2.18-123-geb3292b, so I've updated the commit log message
> accordingly, and will push shortly.
Thanks for analysis and push. Closed.
--- End Message ---