emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#18580: closed ([PATCH] dfa: check end of an input


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#18580: closed ([PATCH] dfa: check end of an input buffer after a transition in non-UTF8 multibyte locales)
Date: Wed, 08 Oct 2014 22:37:02 +0000

Your message dated Thu, 09 Oct 2014 07:36:30 +0900
with message-id <address@hidden>
and subject line Re: bug#18580: [PATCH] dfa: check end of an input buffer after 
a transition in non-UTF8 multibyte locales
has caused the debbugs.gnu.org bug report #18580,
regarding [PATCH] dfa: check end of an input buffer after a transition in 
non-UTF8 multibyte locales
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
18580: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=18580
GNU Bug Tracking System
Contact address@hidden with problems
--- 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.

Attachment: 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 ---

reply via email to

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