[augeas-devel] [Augeas] #343: segfault with paths beginning with double slash

Augeas trac at fedorahosted.org
Tue Jun 4 00:16:40 UTC 2013


#343: segfault with paths beginning with double slash
-------------------------+-------------------------------------------------
  Reporter:  mfalb       |      Owner:  lutter
      Type:  defect      |     Status:  new
  Priority:  major       |  Milestone:  next
 Component:  Augeas      |    Version:  1.0.0
Resolution:              |   Keywords:  segfault segmentation fault slashes
Blocked By:              |  slash authorized_keys
                         |   Blocking:
-------------------------+-------------------------------------------------

Comment (by lutter):

 Cool .. I now have a reproducer. If you do the following in a git checkout

 {{{
   mkdir tests/root/.ssh
   touch tests/root/.ssh/authorized_keys
   ./src/try cli
 }}}

 you get the desired segfault. Ultimately, this comes down to the fact that
 add_file_info calls tree_find_cr with
 "/augeas/files!//.ssh/authorized_keys" which causes the error flag
 AUG_EMMATCH to be set, which is not kicked back up early enough.

 There's a couple of problems with all this. At a minimum we shouldn't
 segfault, need to think about how to deal with the '!//' issue, too.

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




More information about the augeas-devel mailing list