folly: disable address sanitizer warnings on fbstring
authorAndrew Gallagher <agallagher@fb.com>
Tue, 3 Sep 2013 07:26:59 +0000 (00:26 -0700)
committerJordan DeLong <jdelong@fb.com>
Sun, 8 Sep 2013 01:51:05 +0000 (18:51 -0700)
commit91199bbe0faa08c417dc9fae5911e80b34870e92
tree3775b70428fd968c894a493e0b895c17a5e79d26
parent9bfa4150776b1373827cd1104de852ec91350376
folly: disable address sanitizer warnings on fbstring

Summary:
The fbstring constructor does word-aligned copies which may creep
past the end of the C string, which address sanitizer doesn't like.

This also adds a address-sanitizer-disabling-attribute to both
Portability.h (for general use) and a (gross) copy in FBString.h
since it gets put into libstdc++.

Test Plan: ran address sanitizer on folly tests

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D950586
folly/FBString.h
folly/Portability.h