initialize values (padding etc) help asan/msan tests
This commit is contained in:
@@ -489,6 +489,14 @@ SIMD_FORCE_INLINE const char* btHingeConstraint::serialize(void* dataBuffer, btS
|
||||
hingeData->m_relaxationFactor = float(m_relaxationFactor);
|
||||
#endif
|
||||
|
||||
// Fill padding with zeros to appease msan.
|
||||
#ifdef BT_USE_DOUBLE_PRECISION
|
||||
hingeData->m_padding1[0] = 0;
|
||||
hingeData->m_padding1[1] = 0;
|
||||
hingeData->m_padding1[2] = 0;
|
||||
hingeData->m_padding1[3] = 0;
|
||||
#endif
|
||||
|
||||
return btHingeConstraintDataName;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user