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: Norihiro Tanaka
Subject: bug#18580: [PATCH] dfa: check end of an input buffer after a transition in non-UTF8 multibyte locales
Date: Sun, 05 Oct 2014 16:27:22 +0900

Jim Meyering wrote:
Actually, we need yet another byte at the end, and one more prior:

> When I built with ASAN and rawhide's gcc version 4.9.1 20140930
> (Red Hat 4.9.1-11) (GCC), using this command:
> 
>   make CFLAGS=-ggdb3 AM_CFLAGS=-fsanitize=address \
>     AM_LDFLAGS='-fsanitize=address -static-libasan' check
> 
> I saw two test failures. You can see that the first test triggers an access
> one past the end, and all others trigger an access one prior to the beginning.
> Here is a summary of the problems:

Thanks, if begline option (-x) is set, one more prior is used.  OTOH,
for an access one past the end, I believe the another patch attached
with this bug fixes it.  dfaexec for non-UTF8 locales doesn't check the
end of an input buffer and doesn't count newline correctly.






reply via email to

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