Author: stefan2
Date: Sat Jun 8 11:31:57 2013
New Revision: 1490963
URL: http://svn.apache.org/r1490963
Log:
On the fsfs-format7 branch: fix NULL pointer access when reading a
containered representation due to missing struct member.
* subversion/libsvn_fs_fs/cached_data.c
(create_rep_state_body): provide a file access structure
Modified:
subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c
Modified: subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c
URL:
http://svn.apache.org/viewvc/subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c?rev=1490963&r1=1490962&r2=1490963&view=diff
==============================================================================
--- subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c
(original)
+++ subversion/branches/fsfs-format7/subversion/libsvn_fs_fs/cached_data.c Sat
Jun 8 11:31:57 2013
@@ -736,6 +736,12 @@ create_rep_state_body(rep_state_t **rep_
*rep_header = apr_pcalloc(pool, sizeof(**rep_header));
(*rep_header)->type = svn_fs_fs__rep_container;
+ /* provide an empty shared file struct */
+ rs->file = apr_pcalloc(pool, sizeof(*rs->file));
+ rs->file->revision = rep->revision;
+ rs->file->pool = pool;
+ rs->file->fs = fs;
+
/* exit to caller */
*rep_state = rs;
return SVN_NO_ERROR;