[PATCH] Fix for size_t in Asan's new and delete operators on x64 FreeBSD in 32-bit mode

Kostya Serebryany kcc at google.com
Mon Feb 24 22:30:13 PST 2014


  can you change the patch so that it has no impact on the rest of the file?

  #if SANITIZER_FREEBSD && SANITIZER_WORDSIZE == 32
  #include <something-that-defines-the-os-version>
  // FreeBSD <= 9.2 have wrong definition of size_t:
  // http://svnweb.freebsd.org/base?view=revision&revision=232261
  #if  FREEBSD_VERSION <= 920
    #define size_t unsigned
  #endif  // FREEBSD_VERSION
  #endif  // SANITIZER_FREEBSD && SANITIZER_WORDSIZE == 32

http://llvm-reviews.chandlerc.com/D2856



More information about the llvm-commits mailing list