Author: stefan2
Date: Mon Apr 21 15:18:54 2014
New Revision: 1588899

URL: http://svn.apache.org/r1588899
Log:
Be consistent in the way we create file / stream data buffers.

* subversion/libsvn_fs_fs/transaction.c
  (fnv1a_checksum_on_file_range): Allocate the data buffer from the
                                  APR pool instead of from stack.

Modified:
    subversion/trunk/subversion/libsvn_fs_fs/transaction.c

Modified: subversion/trunk/subversion/libsvn_fs_fs/transaction.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/transaction.c?rev=1588899&r1=1588898&r2=1588899&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/transaction.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/transaction.c Mon Apr 21 15:18:54 
2014
@@ -3567,7 +3567,7 @@ fnv1a_checksum_on_file_range(apr_uint32_
                              apr_off_t size,
                              apr_pool_t *pool)
 {
-  char buffer[SVN__STREAM_CHUNK_SIZE];
+  char *buffer = apr_pcalloc(pool, SVN__STREAM_CHUNK_SIZE);
 
   svn_checksum_ctx_t *checksum_ctx
     = svn_checksum_ctx_create(svn_checksum_fnv1a_32x4, pool);


Reply via email to