[Top][All Lists]

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

bug#16586: bug#17245: GREP BUG: grep -P and binary files

From: Paul Eggert
Subject: bug#16586: bug#17245: GREP BUG: grep -P and binary files
Date: Mon, 21 Apr 2014 11:03:10 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

On 04/16/2014 05:13 AM, Norihiro Tanaka wrote:

Thanks. The response there makes it clear that if grep passes arbitrary binary data to PCRE, and if grep uses PCRE_NO_UTF8_CHECK, undefined behavior will result (maybe infinite loop, core dump, etc.). We can't have undefined behavior in grep. A simple fix is to avoid using PCRE_NO_UTF8_CHECK so I installed the attached patch to do that. Perhaps we can think of a better way at some point. In the meantime I'm taking the liberty of closing Bug#17245 and Bug#16586.

Attachment: 0001-grep-P-now-rejects-invalid-input-sequences-in-UTF-8-.patch
Description: Text Data

reply via email to

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