[PATCH] [Sanitizers] Fix ForEachMappedRegion() to work on FreeBSD

Alexey Samsonov vonosmas at gmail.com
Wed Jan 28 14:48:55 PST 2015


================
Comment at: lib/sanitizer_common/sanitizer_linux.cc:808
@@ +807,3 @@
+  // incroporates the map structure.
+  map = (link_map*)((char*)map + 544);
+#else
----------------
Looks like you need a named constant for 544 (maybe, in sanitizer_platform_limits_posix.h). Is it possible to calculate it in sanitizer_platform_limits_posix.cc by using offsetof() ?

http://reviews.llvm.org/D7233

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list