Protect memcpy calls against undefined behaviour
Summary: While running a UBSan enabled binary, I got: folly/io/IOBuf.cpp:671:15: runtime error: null pointer passed as argument 2, which is declared to never be null This change protects all calls to memcpy from passing `nullptr`. Reviewed By: pixelb Differential Revision: D4415355 fbshipit-source-id: a27ba74244abcca8cd4e106967222890a67f5b6d
Showing
Please register or sign in to comment