GNU bug report logs - #18738
Reference of a uninitialized variable in grep -P

Previous Next

Package: grep;

Reported by: Norihiro Tanaka <noritnk <at> kcn.ne.jp>

Date: Wed, 15 Oct 2014 16:38:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 18738-done <at> debbugs.gnu.org (full text, mbox):

From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 18738-done <at> debbugs.gnu.org
Subject: Re: bug#18738: Reference of a uninitialized variable in grep -P
Date: Thu, 16 Oct 2014 08:56:05 +0900
[Message part 1 (text/plain, inline)]
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?

[0001-grep-initialized-validation_boundary-before-pre-sear.patch (text/plain, attachment)]

This bug report was last modified 10 years and 227 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.