[Top][All Lists]

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

[bug #20834] find -execdir segfaults if PATH is not set.

From: Andreas Metzler
Subject: [bug #20834] find -execdir segfaults if PATH is not set.
Date: Sun, 19 Aug 2007 07:58:18 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20070505 Iceape/1.0.9 (Debian-1.0.10~pre070720-0etch3)


                 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



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

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

  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:


  Nachricht geschickt von/durch Savannah

reply via email to

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