bug-findutils
[Top][All Lists]
Advanced

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

[bug #48180] find -noop segfaults


From: anonymous
Subject: [bug #48180] find -noop segfaults
Date: Wed, 8 Jun 2016 16:35:27 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36

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

                 Summary: find -noop segfaults
                 Project: findutils
            Submitted by: None
            Submitted on: Wed 08 Jun 2016 16:35:24 UTC
                Category: find
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Tavian Barnes
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.6.0
           Fixed Release: None

    _______________________________________________________

Details:

$ find -noop
[1]    4043 segmentation fault (core dumped)  find -noop

This is a result of the parse table entry having a NULL function pointer here:
http://git.savannah.gnu.org/cgit/findutils.git/tree/find/parser.c?id=9cb4175a172f47a6fcd3b20bd65f7a3c1c0637ec#n326

I'm not sure why that entry has to be part of parse_table itself.  get_noop()
looks for it but I think

static const struct parser_table noop = {ARG_NOOP, "noop",                 
NULL, pred_true };

static const struct parser_table*
get_noop (void)
{
  return &noop;
}

would probably work fine.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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