vcs-svn: guard against overflow when computing preimage length