Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-4543

Infinite recursion SEGV in config value expansion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • all
    • 1.10.0
    • libsvn_subr
    • None

    Description

      Config value expansion does not detect self-references or loops. Attempting to
      expand such a value leads to infinite recursion and a SEGV. Apply the patch
      below and run "config-test 9", i.e "test variable expansion":
      
      $ subversion/tests/libsvn_subr/config-test --srcdir
      subversion/tests/libsvn_subr/config-test 9
      Segmentation fault
      
      Index: ../src/subversion/tests/libsvn_subr/config-test.cfg
      ===================================================================
      --- ../src/subversion/tests/libsvn_subr/config-test.cfg	(revision 1646804)
      +++ ../src/subversion/tests/libsvn_subr/config-test.cfg	(working copy)
      @@ -35,7 +35,7 @@
       # Expansion format escaping doesn't seem possible
       f=%%(a)s
       # Two-level variable expansion with surrounding text
      -g=lyrical %(c)sd
      +g=lyrical %(g)sd
       # Unterminated format string
       h=  %(unterminated
       # Multiple expansions
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            philipm Philip Martin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: