components/subversion/patches/002-CVE-2013-1849.patch
author Girish Moodalbail <Girish.Moodalbail@oracle.COM>
Fri, 10 Oct 2014 15:45:16 -0700
branchs11u2-sru
changeset 3383 98f2d5045108
parent 2922 a20504fc0f7b
permissions -rw-r--r--
19716228 problem in SERVICE/NEUTRON
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2922
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     1
# CVE-2013-1849
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     2
# http://subversion.apache.org/security/CVE-2013-1849-advisory.txt
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     3
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     4
--- subversion/mod_dav_svn/liveprops.c	2012-02-03 12:04:00.000000000 -0800
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     5
+++ subversion/mod_dav_svn/liveprops.c	2014-01-22 09:29:53.399158026 -0800
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     6
@@ -429,7 +429,8 @@
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     7
         svn_filesize_t len = 0;
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     8
 
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     9
         /* our property, but not defined on collection resources */
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    10
-        if (resource->collection || resource->baselined)
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    11
+        if (resource->type == DAV_RESOURCE_TYPE_ACTIVITY ||
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    12
+            resource->collection || resource->baselined)
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    13
           return DAV_PROP_INSERT_NOTSUPP;
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    14
 
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    15
         serr = svn_fs_file_length(&len, resource->info->root.root,
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    16
@@ -453,7 +454,9 @@
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    17
         svn_string_t *pval;
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    18
         const char *mime_type = NULL;
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    19
 
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    20
-        if (resource->baselined && resource->type == DAV_RESOURCE_TYPE_VERSION)
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    21
+        if ((resource->type == DAV_RESOURCE_TYPE_ACTIVITY) ||
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    22
+            (resource->baselined &&
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    23
+             resource->type == DAV_RESOURCE_TYPE_VERSION))
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    24
           return DAV_PROP_INSERT_NOTSUPP;
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    25
 
a20504fc0f7b 18117608 problem in UTILITY/SVN
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    26
         if (resource->type == DAV_RESOURCE_TYPE_PRIVATE