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

 
 

bug #48180: find -noop segfaults

Submitted by:  None
Submitted on:  Wed 08 Jun 2016 04:35:24 PM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Bernhard Voelker <berny>
Originator Name: Tavian BarnesOriginator Email: -unavailable-
Open/Closed: OpenRelease: 4.6.0
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 17 Jun 2016 11:38:54 AM UTC, comment #1:

Fixed, see discussion in
http://lists.gnu.org/archive/html/bug-findutils/2016-06/msg00002.html

Bernhard Voelker <berny>
Project MemberIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 17 Jun 2016 11:38:54 AM UTCbernyStatusNone=>Fixed
      Assigned toNone=>berny

    Back to the top


    Powered by Savane 3.1-cleanup1