bugfindutils - Bugs: bug #48180, find -noop segfaults

 
 

bug #48180: find -noop segfaults

Submitter:  None
Submitted:  Wed 08 Jun 2016 04:35:24 PM UTC
   
 
Category:  find Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  berny
Originator Name:  Tavian Barnes Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  4.6.0
Fixed Release:  4.7.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 17 Jun 2016 11:38:54 AM UTC, comment #1: 
Bernhard Voelker <berny>
Group administrator
Wed 08 Jun 2016 04:35:24 PM UTC, original submission:  

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

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jay (Updated the item)
  • -email is unavailable- added by berny (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-08-29 jay Open/ClosedOpen Closed
    2019-08-29 berny Fixed ReleaseNone 4.7.0
    2016-06-17 berny StatusNone Fixed
        Assigned toNone berny

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code