bug-grep
[Top][All Lists]
Advanced

[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:1.9.2.2) 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:

  <http://savannah.gnu.org/bugs/?29358>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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