[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

segfault with new conflict resolver

From: Stefan Kueng <tortoisesvn_at_gmail.com>
Date: Sat, 28 Jan 2017 13:31:46 +0100

Hi,

trying out the new conflict resolver. Ran into a segfault on my first try:

libsvn_client\conflicts.c, function find_modified_rev():

if there is no author for a commit, then we get a segfault here:

   /* No paths were changed in this revision. Nothing to do. */
   if (! log_entry->changed_paths2)
     return SVN_NO_ERROR;

   details = apr_pcalloc(b->result_pool, sizeof(*details));
   details->rev = log_entry->revision;
   author = svn_hash_gets(log_entry->revprops, SVN_PROP_REVISION_AUTHOR);

*** now 'author' is nullptr, and the next line crashes:
   details->author = apr_pstrdup(b->result_pool, author->data);

   details->text_modified = svn_tristate_unknown;
   details->props_modified = svn_tristate_unknown;
   details->children_modified = svn_tristate_unknown;

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
Received on 2017-01-28 13:31:59 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.