[Top][All Lists]

[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


                 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



$ 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:

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:


  Message sent via/by Savannah

reply via email to

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