URL:
  <http://savannah.gnu.org/bugs/?20834>

                 Summary: find -execdir segfaults if PATH is not set.
                 Project: findutils
            Submitted by: ametzler
            Submitted on: Sonntag 19.08.2007 um 09:58
                Category: find
                Severity: 3 - Normal
              Item Group: Wrong result
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
           Fixed Release: None

    _______________________________________________________

Details:

This is http://bugs.debian.org/438689 submitted by Reuben Thomas.

This causes a segfault:
env -u PATH find /tmp -exedir /bin/echo \;

The bug applies to both 4.2.x and 4.3.x and is caused by this code in
parser.c:

-----------------------
static void 
check_path_safety(const char *action, char **argv)
{
  const char *path = getenv("PATH");
  char *s;

  (void)argv;
  
  s = next_element(path, 1);
-----------------------

Invoking next_element with NULL is only supposed to happen if it has been
called before with non-NULL argument to initialize path.

cu andreas




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/



Reply via email to