Buffer overrun in Mutable's GenerateAndAddLaplacianData

Hi,

We found a memory stomp coming from a buffer overrun in the memcpys in GenerateAndAddLaplacianData in OpMeshBind.h

The 3 memcpys use GetDataSize (which adds the size of the metadata to the size of the buffer) where they should use GetBufferDataSize

Cheers!

[Attachment Removed]

Steps to Reproduce[Attachment Removed]

Hello!

You are correct! There is a 16 bytes overrun. It is sneaky as there might be allocation padding so it won’t happen all the time. I am working on pushing a fix for 5.8.5.

Thanks for the report!

Martin

[Attachment Removed]