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/03/29 11:47:59 UTC

svn commit: r1462438 - /subversion/branches/fsfs-format7/subversion/libsvn_subr/string.c

Author: stefan2
Date: Fri Mar 29 10:47:59 2013
New Revision: 1462438

URL: http://svn.apache.org/r1462438
Log:
On the fsfs-format7 branch: undo r1461823.

* subversion/libsvn_subr/string.c
  (svn_stringbuf__morph_into_string): undo latest change

Modified:
    subversion/branches/fsfs-format7/subversion/libsvn_subr/string.c

Modified: subversion/branches/fsfs-format7/subversion/libsvn_subr/string.c
URL: http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/libsvn_subr/string.c?rev=1462438&r1=1462437&r2=1462438&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/libsvn_subr/string.c (original)
+++ subversion/branches/fsfs-format7/subversion/libsvn_subr/string.c Fri Mar 29 10:47:59 2013
@@ -331,6 +331,13 @@ svn_string_find_char_backward(const svn_
 svn_string_t *
 svn_stringbuf__morph_into_string(svn_stringbuf_t *strbuf)
 {
+  /* In debug mode, detect attempts to modify the original STRBUF object.
+   */
+#ifdef SVN_DEBUG
+  strbuf->pool = NULL;
+  strbuf->blocksize = strbuf->len + 1;
+#endif
+
   /* Both, svn_string_t and svn_stringbuf_t are public API structures
    * since the svn epoch. Thus, we can rely on their precise layout not
    * to change.