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 #16 received at 18738-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
Cc: 18738-done <at> debbugs.gnu.org
Subject: Re: bug#18738: Reference of a uninitialized variable in grep -P
Date: Wed, 15 Oct 2014 21:42:36 -0700
Norihiro Tanaka wrote:

> BTW, validation_boundary isn't initialized before pre-searching for an
> empty line

Oh, so *that's* the uninitialized variable you were referring to!  Sorry, I 
didn't know.  Yes, it should be initialized; it's not portable to assume that 
NULL < valid pointers.  I installed your patch.

This whole area should be cleaned up, I think, but not just before a release.




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.