Stefan Küng <tortoise...@gmail.com> writes:

> A few crash dumps sent for TSVN 1.7 show a segfault when applying a patch.
>
> in libsvn_client/patch.c, line 2703:
>
> target_info = APR_ARRAY_IDX(targets_info, i, patch_target_info_t *);
> parent = svn_dirent_dirname(target_info->local_abspath, iterpool);
>
> the target_info->local_abspath is NULL, so svn_dirent_dirname() then
> segfaults.
>
> I haven't figured out why target_info->local_abspath is NULL though,
> but maybe you have an idea?

What you need is a patch file that has modifies two targets.  One part
of the patch gets applied and deletes a file, another part of the patch
gets skipped, because the path is outside the working copy say.  The
skipped target has local_abspath NULL and delete_empty_dirs will crash.

-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com

Reply via email to