[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: |
Norihiro Tanaka |
Subject: |
bug#18580: [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
- bug#18580: [PATCH] dfa: check end of an input buffer after a transition in non-UTF8 multibyte locales,
Norihiro Tanaka <=