[Pvfs2-cvs] commit by pw in pvfs2/src/proto: pvfs2-req-proto.h
CVS commit program
cvs at parl.clemson.edu
Wed Jul 18 16:43:03 EDT 2007
Update of /projects/cvsroot/pvfs2/src/proto
In directory parlweb1:/tmp/cvs-serv8401/src/proto
Modified Files:
pvfs2-req-proto.h
Log Message:
Zero pad bytes in server req header for valgrind.
Index: pvfs2-req-proto.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/proto/pvfs2-req-proto.h,v
diff -u -p -p -u -r1.148 -r1.149
--- pvfs2-req-proto.h 15 Mar 2007 21:45:31 -0000 1.148
+++ pvfs2-req-proto.h 18 Jul 2007 20:43:03 -0000 1.149
@@ -1535,6 +1535,9 @@ struct PVFS_server_req
static inline void
encode_PVFS_server_req(char **pptr, const struct PVFS_server_req *x) {
encode_enum(pptr, &x->op);
+#ifdef HAVE_VALGRIND_H
+ *(int32_t*) *pptr = 0; /* else possible memcpy in BMI sees uninit */
+#endif
*pptr += 4;
encode_PVFS_credentials(pptr, &x->credentials);
}
More information about the Pvfs2-cvs
mailing list