/[Apache-SVN]
ViewVC logotype

Revision 1616600


Jump to revision: Previous Next
Author: stefan2
Date: Thu Aug 7 21:35:01 2014 UTC (9 years, 8 months ago)
Changed paths: 5
Log Message:
Explicitly limit the dimensions of a star delta container which allows us
to cast sizes to 32 bits.

* subversion/include/svn_error_codes.h
  (SVN_ERR_FS_CONTAINER_SIZE): Declare new error code.

* subversion/libsvn_fs_x/reps.h
  (svn_fs_x__reps_add): Allow for error returns.

* subversion/libsvn_fs_x/reps.c
  (MAX_TEXT_BODY,
   MAX_INSTRUCTIONS): Formally declare dimensional limit to the star
                      delta container.
  (svn_fs_x__reps_add_base): Update caller. Explicitly cast index to 32 bits.
  (add_new_text): Explicitly cast length values to 32 bits. They have been
                  limited to < 2GB be the caller already.
  (svn_fs_x__reps_add): Make sure the container size stays within set limits.

* subversion/libsvn_fs_x/pack.c
  (write_reps_containers): Update caller.

* subversion/tests/libsvn_fs_x/fs-x-pack-test.c
  (test_reps): Same.

Changed paths

Path Details
Directorysubversion/trunk/subversion/include/svn_error_codes.h modified , text changed
Directorysubversion/trunk/subversion/libsvn_fs_x/pack.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_fs_x/reps.c modified , text changed
Directorysubversion/trunk/subversion/libsvn_fs_x/reps.h modified , text changed
Directorysubversion/trunk/subversion/tests/libsvn_fs_x/fs-x-pack-test.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26