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: [email protected]
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/