subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1467365 - /subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/string_table.c
Date Fri, 12 Apr 2013 17:37:35 GMT
Author: stefan2
Date: Fri Apr 12 17:37:35 2013
New Revision: 1467365

URL: http://svn.apache.org/r1467365
Log:
On the fsfs-format7 branch:  Make string tables easier to build
by copying the incoming strings into our builder-local pool.

* subversion/libsvn_fs_fs/string_table.c
  (svn_fs_fs__string_table_builder_add): copy strings before processing them

Modified:
    subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/string_table.c

Modified: subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/string_table.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/string_table.c?rev=1467365&r1=1467364&r2=1467365&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/string_table.c (original)
+++ subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/string_table.c Fri Apr 12 17:37:35
2013
@@ -20,6 +20,7 @@
  * ====================================================================
  */
 
+#include <assert.h>
 #include <string.h>
 #include <apr_tables.h>
 
@@ -277,6 +278,7 @@ svn_fs_fs__string_table_builder_add(stri
   if (len == 0)
     len = strlen(string);
 
+  string = apr_pstrmemdup(builder->pool, string, len);
   if (len > MAX_SHORT_STRING_LEN)
     {
       svn_string_t item;



Mime
View raw message