| Re: Branch 'invoke-diff-cmd-feature' is ready for half-way review
From: <roderich.schupp_at_gmail.com>
 Date: Wed, 16 Oct 2013 05:18:46 -0700 (PDT) 
Looking over __create_custom_diff_cmd() in ./subversion/libsvn_subr/io.c:
 (1) The function doesn't strip double quotes, e.g.
 _create_custom_diff_cmd(..., /* cmd= */ "duff \"quoted\"", pool)
 will return the array { "duff", "\"quoted\"", NULL } 
 svn_cstring_split and then trying to fix up the result).
 (2) 
   result = apr_palloc(pool, 
 Why is words->elt_size needed here - result is an array of char*?
 (3) Lifetime issue:
       result[argv] = word->data;
 word (and hence word->data) has been allocated in scratch_pool (which will be destroyed 
 Cheers, Roderich
 | 
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.