Skip to content

Commit 76a537f

Browse files
committed
ch3: Fix uninitialized bytes caused by MPIDI_Pkt_init
In meminit debug mode, we need to initialize all packet headers before sending them. Since ch3 uses a fixed header size, we need to make sure to initialize the whole header and not just the subtype used for a particular message.
1 parent dbe8ae4 commit 76a537f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mpid/ch3/include/mpidimpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ void MPIDI_DBG_PrintVCState(MPIDI_VC_t *vc);
464464
#else
465465
# define MPIDI_Pkt_init(pkt_, type_) \
466466
{ \
467-
memset((void *) (pkt_), 0xfc, sizeof(*(pkt_))); \
467+
memset((void *) (pkt_), 0xfc, sizeof(MPIDI_CH3_Pkt_t)); \
468468
(pkt_)->type = (type_); \
469469
}
470470
#endif

0 commit comments

Comments
 (0)