• Andrew Gallagher's avatar
    folly: disable address sanitizer warnings on fbstring · 91199bbe
    Andrew Gallagher authored
    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
    91199bbe
Portability.h 2.85 KB