Author: julianfoad
Date: Thu Nov 23 08:13:56 2017
New Revision: 1816106

URL: http://svn.apache.org/viewvc?rev=1816106&view=rev
Log:
On the '1.8.x-issue4707' branch: use the correct size formatting.

apr_size_t would be 32 bits on 32-bit architectures, so my previous attempt
would not have fixed the bug.

Found by: kotkov

* subversion/svnrdump/dump_editor.c
  (close_file): Use APR_OFF_T_FMT not APR_SIZE_T_FMT.

Modified:
    subversion/branches/1.8.x-issue4707/subversion/svnrdump/dump_editor.c

Modified: subversion/branches/1.8.x-issue4707/subversion/svnrdump/dump_editor.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/1.8.x-issue4707/subversion/svnrdump/dump_editor.c?rev=1816106&r1=1816105&r2=1816106&view=diff
==============================================================================
--- subversion/branches/1.8.x-issue4707/subversion/svnrdump/dump_editor.c 
(original)
+++ subversion/branches/1.8.x-issue4707/subversion/svnrdump/dump_editor.c Thu 
Nov 23 08:13:56 2017
@@ -1040,7 +1040,7 @@ close_file(void *file_baton,
       /* Text-content-length: 39 */
       SVN_ERR(svn_stream_printf(eb->stream, pool,
                                 SVN_REPOS_DUMPFILE_TEXT_CONTENT_LENGTH
-                                ": %" APR_SIZE_T_FMT "\n",
+                                ": %" APR_OFF_T_FMT "\n",
                                 info->size));
 
       /* Text-content-md5: 82705804337e04dcd0e586bfa2389a7f */
@@ -1055,12 +1055,12 @@ close_file(void *file_baton,
   if (fb->dump_props)
     SVN_ERR(svn_stream_printf(eb->stream, pool,
                               SVN_REPOS_DUMPFILE_CONTENT_LENGTH
-                              ": %" APR_SIZE_T_FMT "\n\n",
+                              ": %" APR_OFF_T_FMT "\n\n",
                               info->size + propstring->len));
   else if (fb->dump_text)
     SVN_ERR(svn_stream_printf(eb->stream, pool,
                               SVN_REPOS_DUMPFILE_CONTENT_LENGTH
-                              ": %" APR_SIZE_T_FMT "\n\n",
+                              ": %" APR_OFF_T_FMT "\n\n",
                               info->size));
 
   /* Dump the props now */


Reply via email to