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