Description: fix denial of service via mod_dav incorrect end of string
 calculation
Origin: upstream, http://svn.apache.org/viewvc?view=revision&revision=1556816

Index: apache2-2.4.7/modules/dav/main/util.c
===================================================================
--- apache2-2.4.7.orig/modules/dav/main/util.c	2013-10-18 09:36:21.000000000 -0400
+++ apache2-2.4.7/modules/dav/main/util.c	2014-03-19 15:25:39.199862874 -0400
@@ -396,8 +396,10 @@
 
     if (strip_white) {
         /* trim leading whitespace */
-        while (apr_isspace(*cdata))     /* assume: return false for '\0' */
+        while (apr_isspace(*cdata)) {     /* assume: return false for '\0' */
             ++cdata;
+            --len;
+        }
 
         /* trim trailing whitespace */
         while (len-- > 0 && apr_isspace(cdata[len]))
