components/desktop/firefox/patches/firefox-35-mozalloc.patch
changeset 6919 7972aae0fb03
parent 5527 611b2d6efdfe
child 7309 2655ef11c386
--- a/components/desktop/firefox/patches/firefox-35-mozalloc.patch	Fri Sep 16 07:20:57 2016 -0700
+++ b/components/desktop/firefox/patches/firefox-35-mozalloc.patch	Fri Sep 16 16:06:45 2016 -0700
@@ -6,9 +6,9 @@
 --- a/memory/mozalloc/mozalloc.cpp
 +++ b/memory/mozalloc/mozalloc.cpp
 @@ -208,6 +208,8 @@
- }
- #endif
-
+ #endif // if defined(HAVE_VALLOC) 
+ 
+ #ifndef MOZ_STATIC_RUNTIME
 +extern "C" size_t malloc_usable_size(const void *ptr);
 +
  size_t
@@ -18,9 +18,9 @@
 --- a/memory/mozalloc/mozalloc_abort.cpp
 +++ b/memory/mozalloc/mozalloc_abort.cpp
 @@ -63,7 +63,11 @@
- // Define abort() here, so that it is used instead of the system abort(). This
- // lets us control the behavior when aborting, in order to get better results
- // on *NIX platforms. See mozalloc_abort for details.
+ //
+ // That segmentation fault will be interpreted as another bug by ASan and as a
+ // result, ASan will just exit(1) instead of aborting.
 +#if defined(SOLARIS)
 +void std::abort(void)
 +#else