disable asan for qfind_first_byte_of_needles16
authorPhilip Pronin <philipp@fb.com>
Tue, 10 Sep 2013 13:25:53 +0000 (06:25 -0700)
committerJordan DeLong <jdelong@fb.com>
Sun, 22 Sep 2013 23:39:44 +0000 (16:39 -0700)
Summary:
It's expected to read past the string (within the same memory
page).

Test Plan: .

Reviewed By: tudorb@fb.com

FB internal diff: D962974

folly/Range.cpp

index 377e293c4d92a3577616f3094e4790239d9bc01d..c343a362b597a68b7c751a83102bdff9558b453a 100644 (file)
@@ -77,7 +77,8 @@ inline size_t nextAlignedIndex(const char* arr) {
 // build sse4.2-optimized version even if -msse4.2 is not passed to GCC
 size_t qfind_first_byte_of_needles16(const StringPiece& haystack,
                                      const StringPiece& needles)
-  __attribute__ ((__target__("sse4.2"), noinline));
+  __attribute__ ((__target__("sse4.2"), noinline))
+  FOLLY_DISABLE_ADDRESS_SANITIZER;
 
 // helper method for case where needles.size() <= 16
 size_t qfind_first_byte_of_needles16(const StringPiece& haystack,