folly: fbstring: ubsan: memcpy/memmove are marked as nonnull - avoid calling them...
authorLucian Grijincu <lucian@fb.com>
Sat, 14 May 2016 07:38:50 +0000 (00:38 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Sat, 14 May 2016 07:53:25 +0000 (00:53 -0700)
commitbc02b7a42d2424af74fa526349d2a531a49c83d3
treef9d2ed2128bec0646832c4dc93f9907608f1af28
parent3ce293faff5749f9935de1fdc7506c75296c4e6c
folly: fbstring: ubsan: memcpy/memmove are marked as nonnull - avoid calling them when size == 0 and (likely) source is nullptr

Summary: Also see {D3295811}

Differential Revision: D3302564

fbshipit-source-id: 3f2dbf5a6cfa8199682cb4af90aac372d501919a
folly/FBString.h