In this implementation of memcpy_s (as well as others) the region pointed to by dest is zeroized when a runtime constraint violation occurs.
Can anyone explain why is this done? I got footguned by this a few days back and I would be interested in knowing why this is done.