You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2013/05/23 01:05:40 UTC

svn commit: r1485480 - /subversion/trunk/subversion/libsvn_delta/text_delta.c

Author: stefan2
Date: Wed May 22 23:05:40 2013
New Revision: 1485480

URL: http://svn.apache.org/r1485480
Log:
Fix a snafu that prevented the optimized code path to be executed in most
cases. This affects legacy txdelta v1 data only - which is quite rare to
find these days.

* subversion/libsvn_delta/text_delta.c
  (patterning_copy): there will be no overlap past the END ..

Modified:
    subversion/trunk/subversion/libsvn_delta/text_delta.c

Modified: subversion/trunk/subversion/libsvn_delta/text_delta.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_delta/text_delta.c?rev=1485480&r1=1485479&r2=1485480&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_delta/text_delta.c (original)
+++ subversion/trunk/subversion/libsvn_delta/text_delta.c Wed May 22 23:05:40 2013
@@ -669,7 +669,7 @@ patterning_copy(char *target, const char
 
 #if SVN_UNALIGNED_ACCESS_IS_OK
 
-  if (end + sizeof(apr_uint32_t) <= target)
+  if (source + sizeof(apr_uint32_t) <= target)
     {
       /* Source and target are at least 4 bytes apart, so we can copy in
        * 4-byte chunks.  */