52cd1a
52cd1a
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-3580
52cd1a
52cd1a
http://subversion.apache.org/security/CVE-2014-3580-advisory.txt
52cd1a
52cd1a
--- subversion-1.7.14/subversion/mod_dav_svn/reports/deleted-rev.c.cve3580
52cd1a
+++ subversion-1.7.14/subversion/mod_dav_svn/reports/deleted-rev.c
52cd1a
@@ -56,6 +56,9 @@ dav_svn__get_deleted_rev_report(const da
52cd1a
   dav_error *derr = NULL;
52cd1a
 
52cd1a
   /* Sanity check. */
52cd1a
+  if (!resource->info->repos_path)
52cd1a
+    return dav_svn__new_error(resource->pool, HTTP_BAD_REQUEST, 0,
52cd1a
+                              "The request does not specify a repository path");
52cd1a
   ns = dav_svn__find_ns(doc->namespaces, SVN_XML_NAMESPACE);
52cd1a
   if (ns == -1)
52cd1a
     return dav_svn__new_error_tag(resource->pool, HTTP_BAD_REQUEST, 0,
52cd1a
--- subversion-1.7.14/subversion/mod_dav_svn/reports/file-revs.c.cve3580
52cd1a
+++ subversion-1.7.14/subversion/mod_dav_svn/reports/file-revs.c
52cd1a
@@ -251,6 +251,9 @@ dav_svn__file_revs_report(const dav_reso
52cd1a
   arb.repos = resource->info->repos;
52cd1a
 
52cd1a
   /* Sanity check. */
52cd1a
+  if (!resource->info->repos_path)
52cd1a
+    return dav_svn__new_error(resource->pool, HTTP_BAD_REQUEST, 0,
52cd1a
+                              "The request does not specify a repository path");
52cd1a
   ns = dav_svn__find_ns(doc->namespaces, SVN_XML_NAMESPACE);
52cd1a
   /* ### This is done on other places, but the document element is
52cd1a
      in this namespace, so is this necessary at all? */
52cd1a
--- subversion-1.7.14/subversion/mod_dav_svn/reports/get-locations.c.cve3580
52cd1a
+++ subversion-1.7.14/subversion/mod_dav_svn/reports/get-locations.c
52cd1a
@@ -106,6 +106,9 @@ dav_svn__get_locations_report(const dav_
52cd1a
                                       sizeof(svn_revnum_t));
52cd1a
 
52cd1a
   /* Sanity check. */
52cd1a
+  if (!resource->info->repos_path)
52cd1a
+    return dav_svn__new_error(resource->pool, HTTP_BAD_REQUEST, 0,
52cd1a
+                              "The request does not specify a repository path");
52cd1a
   ns = dav_svn__find_ns(doc->namespaces, SVN_XML_NAMESPACE);
52cd1a
   if (ns == -1)
52cd1a
     {
52cd1a
--- subversion-1.7.14/subversion/mod_dav_svn/reports/get-location-segments.c.cve3580
52cd1a
+++ subversion-1.7.14/subversion/mod_dav_svn/reports/get-location-segments.c
52cd1a
@@ -123,6 +123,9 @@ dav_svn__get_location_segments_report(co
52cd1a
   struct location_segment_baton location_segment_baton;
52cd1a
 
52cd1a
   /* Sanity check. */
52cd1a
+  if (!resource->info->repos_path)
52cd1a
+    return dav_svn__new_error(resource->pool, HTTP_BAD_REQUEST, 0,
52cd1a
+                              "The request does not specify a repository path");
52cd1a
   ns = dav_svn__find_ns(doc->namespaces, SVN_XML_NAMESPACE);
52cd1a
   if (ns == -1)
52cd1a
     {
52cd1a
--- subversion-1.7.14/subversion/mod_dav_svn/reports/log.c.cve3580
52cd1a
+++ subversion-1.7.14/subversion/mod_dav_svn/reports/log.c
52cd1a
@@ -307,6 +307,9 @@ dav_svn__log_report(const dav_resource *
52cd1a
     = apr_array_make(resource->pool, 1, sizeof(const char *));
52cd1a
 
52cd1a
   /* Sanity check. */
52cd1a
+  if (!resource->info->repos_path)
52cd1a
+    return dav_svn__new_error(resource->pool, HTTP_BAD_REQUEST, 0,
52cd1a
+                              "The request does not specify a repository path");
52cd1a
   ns = dav_svn__find_ns(doc->namespaces, SVN_XML_NAMESPACE);
52cd1a
   if (ns == -1)
52cd1a
     {
52cd1a
--- subversion-1.7.14/subversion/mod_dav_svn/reports/mergeinfo.c.cve3580
52cd1a
+++ subversion-1.7.14/subversion/mod_dav_svn/reports/mergeinfo.c
52cd1a
@@ -67,6 +67,9 @@ dav_svn__get_mergeinfo_report(const dav_
52cd1a
     = apr_array_make(resource->pool, 0, sizeof(const char *));
52cd1a
 
52cd1a
   /* Sanity check. */
52cd1a
+  if (!resource->info->repos_path)
52cd1a
+    return dav_svn__new_error(resource->pool, HTTP_BAD_REQUEST, 0,
52cd1a
+                              "The request does not specify a repository path");
52cd1a
   ns = dav_svn__find_ns(doc->namespaces, SVN_XML_NAMESPACE);
52cd1a
   if (ns == -1)
52cd1a
     {