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: Paul Eggert
Subject: bug#18580: [PATCH] dfa: check end of an input buffer after a transition in non-UTF8 multibyte locales
Date: Sat, 04 Oct 2014 22:54:04 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2

Thanks for catching that. Obviously the patch should go in, but I'm mystified as to why we need two bytes' worth of sentinels after the buffer. I suspect there's another bug lurking in there, related to the bugs earlier in this report.

That is, the two-byte trailing sentinel seems to be related to the problem that the code that calls transit_state_singlebyte can jump over two bytes when it should jump past just one. The whole area is a bit of a mess. (For example, transit_state_singlebyte always returns the same value -- what's up with that!?)





reply via email to

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