bug-grep
[Top][All Lists]
Advanced

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

bug#18806: grep -rP getline crashes prematurely (without displaying all


From: Norihiro Tanaka
Subject: bug#18806: grep -rP getline crashes prematurely (without displaying all results) on invalid UTF-8 input with LC_ALL=en_US.UTF-8
Date: Sat, 25 Oct 2014 01:45:42 +0900

Shlomi Fish <address@hidden> write:
> `which grep` --color -rP getline grep-test

If -o or --color option is specified, may be line_end < validated in
longest exact match.  As a result, a negative value is set to
`search_bytes'.

I improved validation for input buffer in order to fix the bug.
However, possibly it may cause slowdown.

Attachment: 0001-grep-improvement-of-validation-for-input-buffer-in-g.patch
Description: Text document


reply via email to

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