bug-grep
[Top][All Lists]
Advanced

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

bug#18738: Reference of a uninitialized variable in grep -P


From: Norihiro Tanaka
Subject: bug#18738: Reference of a uninitialized variable in grep -P
Date: Thu, 16 Oct 2014 08:56:05 +0900

Paul Eggert wrote:
> Thanks for reporting that.  It's a bug in one of the optimizations I
> recently added to work around the libpcre slownesses with UTF-8.
> It's also a bug in our test cases, which should have caught the bug.
> I fixed it with the attached patch.

Thanks for fixing that.

BTW, validation_boundary isn't initialized before pre-searching for an
empty line clearly.  As it's set to 0 (NULL pointer in many machine)
implicitly, it isn't a bug.  However, if you don't avoid to initialize it
by intent, could you consider an attached patch?

Attachment: 0001-grep-initialized-validation_boundary-before-pre-sear.patch
Description: Text document


reply via email to

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