[Top][All Lists]

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

[bug #29358] segmentation fault in isdir1 with grep-2.6.1

From: Philipp Kohlbecher
Subject: [bug #29358] segmentation fault in isdir1 with grep-2.6.1
Date: Sun, 28 Mar 2010 10:34:37 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100323 Namoroka/3.6.2

Follow-up Comment #1, bug #29358 (project grep):

This is a null pointer dereference in isdir1. The pointer in question is
"path" which is used in isdir1 before being assigned.

Looking at lib/savedir.c, I can't figure out what this "path" variable is
used for.

Simply setting
  pathlen = dirlen + filelen + 2;
  path = xrealloc (path, pathlen);
in isdir1 will fix the segfault.

With this fix in place, the --include switch doesn't work, though.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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