Author: stefan2 Date: Sat Aug 2 20:10:35 2014 New Revision: 1615360 URL: http://svn.apache.org/r1615360 Log: Follow-up to r1605195: Fix SEGFAULT for log in authz mode.
* subversion/libsvn_repos/log.c (detect_changed): When filtering the hash, we must either remove unwanted entries or add wanted ones to a new hash. Otherwise, unwanted entries keep their old, internal data type. Modified: subversion/branches/authzperf/subversion/libsvn_repos/log.c Modified: subversion/branches/authzperf/subversion/libsvn_repos/log.c URL: http://svn.apache.org/viewvc/subversion/branches/authzperf/subversion/libsvn_repos/log.c?rev=1615360&r1=1615359&r2=1615360&view=diff ============================================================================== --- subversion/branches/authzperf/subversion/libsvn_repos/log.c (original) +++ subversion/branches/authzperf/subversion/libsvn_repos/log.c Sat Aug 2 20:10:35 2014 @@ -199,7 +199,13 @@ detect_changed(apr_hash_t **changed, if (changes == NULL) { SVN_ERR(svn_fs_paths_changed2(&changes, root, pool)); - *changed = changes; + + /* If we are going to filter the results, we won't use the exact + * same keys but put them into a new hash. */ + if (authz_read_func) + *changed = svn_hash__make(pool); + else + *changed = changes; } else {