folly: fbvector: ubsan: avoid memset(nullptr, 0, 0)
Summary: Constructing an empty FBVector by length results in a call to memset with a null destination, which is undefined behavior. This diff fixes it. Reviewed By: luciang, meyering, Gownta Differential Revision: D4191612 fbshipit-source-id: 3dcc091396fc33ac2230bd2d90906325131b0a3b
Showing
Please register or sign in to comment