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

'svn up -r0' dumps core

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • all
    • 0.14.0
    • src
    • None
    • Linux

    Description

      $ svnadmin create /tmp/repo
      $ svn co file:///tmp/repo -d wc
      $ svn mkdir wc/foo
      A          wc/foo
      $ svn ci wc
      Adding          wc/foo
      Commit succeeded.
      $ svn up -r0 wc
      Segmentation fault
      
      The problem is that revision 0 doesn't have an author property.
      When send_entry_props in libsvn_ra_local/update_editor.c calls
      svn_repos_get_commited_info it gets a null pointer for last_author.
      This gets passed to svn_stringbuf_create_from_string which tries
      to reference last_author->data and dumps core.
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: