[augeas-devel] [Augeas] #186: unmatched [ causes segfault in augtool.c:63

Augeas trac at fedorahosted.org
Fri Mar 18 02:37:20 UTC 2011


#186: unmatched [ causes segfault in augtool.c:63
----------------------+-----------------------------------------------------
  Reporter:  spamaps  |       Owner:  lutter          
      Type:  defect   |      Status:  closed          
  Priority:  minor    |   Milestone:  next            
 Component:  Augeas   |     Version:  0.8.0           
Resolution:  fixed    |    Keywords:  segfault augtool
----------------------+-----------------------------------------------------
Changes (by fgiraldeau):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 commit cfe8fecf742ac011dbcfb0decd235c3402b3cfb5
 Author: Francis Giraldeau <francis.giraldeau at gmail.com>
 Date:   Thu Mar 17 22:18:28 2011 -0400

     Fix unmatch bracket causes segfault in augtool.c

     When command is parsed in augtool, function nexttoken verify that path
 has
     valid and matching brackets and return NULL if not. The function
 cleanpath that
     follows was not handling the NULL case, leading to a segmentation
 fault. By
     checking for NULL value, the error is thrown adequately.

     Fix bug #186

     Thanks to spamaps for the help to resolve this issue.

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/186#comment:2>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list