You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2011/03/05 11:51:47 UTC
svn commit: r1078266 -
/subversion/trunk/subversion/libsvn_subr/svn_temp_serializer.c
Author: stefan2
Date: Sat Mar 5 10:51:46 2011
New Revision: 1078266
URL: http://svn.apache.org/viewvc?rev=1078266&view=rev
Log:
Follow-up to r1078256: Make really, really sure that the pointers we
are comparing are compatible.
* subversion/libsvn_subr/svn_temp_serializer.c
(svn_temp_deserializer__resolve): cast pointer before comparing it
Modified:
subversion/trunk/subversion/libsvn_subr/svn_temp_serializer.c
Modified: subversion/trunk/subversion/libsvn_subr/svn_temp_serializer.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/svn_temp_serializer.c?rev=1078266&r1=1078265&r2=1078266&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/svn_temp_serializer.c (original)
+++ subversion/trunk/subversion/libsvn_subr/svn_temp_serializer.c Sat Mar 5 10:51:46 2011
@@ -287,7 +287,7 @@ svn_temp_deserializer__resolve(void *buf
* Thus, all offsets are > 0. If the following assertion is not met,
* the data is either corrupt or you tried to resolve the pointer
* more than once. */
- assert(target > buffer);
+ assert(target > (const char *)buffer);
/* replace the PTR_OFFSET in *ptr with the pointer to TARGET */
(*(const char **)ptr) = target;