* Update enigmail to 1.7 Changelog: NEW Autocompleting email addresses now matches against any part of the name or email (bug 529584) NEW Composing a mail to a newsgroup will now autocomplete newsgroup names (bug 61491) FIXED Insecure NTLM (pre-NTLMv2) authentication disabled (see 828183) Fixed in Thunderbird 31 MFSA 2014-66 IFRAME sandbox same-origin access through redirect MFSA 2014-65 Certificate parsing broken by non-standard character encoding MFSA 2014-64 Crash in Skia library when scaling high quality images MFSA 2014-63 Use-after-free while when manipulating certificates in the trusted cache MFSA 2014-62 Exploitable WebGL crash with Cesium JavaScript library MFSA 2014-61 Use-after-free with FireOnStateChange event MFSA 2014-59 Use-after-free in DirectWrite font handling MFSA 2014-58 Use-after-free in Web Audio due to incorrect control message ordering MFSA 2014-57 Buffer overflow during Web Audio buffering for playback MFSA 2014-56 Miscellaneous memory safety hazards (rv:31.0 / rv:24.7)
45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
$NetBSD: patch-mozilla_mfbt_Alignment.h,v 1.1 2014/07/27 20:04:59 ryoon Exp $
|
|
|
|
--- mozilla/mfbt/Alignment.h.orig 2014-07-18 00:05:43.000000000 +0000
|
|
+++ mozilla/mfbt/Alignment.h
|
|
@@ -9,11 +9,20 @@
|
|
#ifndef mozilla_Alignment_h
|
|
#define mozilla_Alignment_h
|
|
|
|
+#include "mozilla/Attributes.h"
|
|
+
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
namespace mozilla {
|
|
|
|
+#if defined(MOZ_HAVE_CXX11_ALIGNAS)
|
|
+#define MOZ_ALIGNOF(T) alignof(T)
|
|
+#elif defined(__GNUC__)
|
|
+#define MOZ_ALIGNOF(T) __alignof__(T)
|
|
+#elif defined(_MSC_VER)
|
|
+#define MOZ_ALIGNOF(T) __alignof(T)
|
|
+#else
|
|
/*
|
|
* This class, and the corresponding macro MOZ_ALIGNOF, figures out how many
|
|
* bytes of alignment a given type needs.
|
|
@@ -32,6 +41,7 @@ class AlignmentFinder
|
|
};
|
|
|
|
#define MOZ_ALIGNOF(T) mozilla::AlignmentFinder<T>::alignment
|
|
+#endif
|
|
|
|
/*
|
|
* Declare the MOZ_ALIGNED_DECL macro for declaring aligned types.
|
|
@@ -43,7 +53,10 @@ class AlignmentFinder
|
|
* will declare a two-character array |arr| aligned to 8 bytes.
|
|
*/
|
|
|
|
-#if defined(__GNUC__)
|
|
+#if defined(MOZ_HAVE_CXX11_ALIGNAS)
|
|
+# define MOZ_ALIGNED_DECL(_type, _align) \
|
|
+ alignas(_align) _type
|
|
+#elif defined(__GNUC__)
|
|
# define MOZ_ALIGNED_DECL(_type, _align) \
|
|
_type __attribute__((aligned(_align)))
|
|
#elif defined(_MSC_VER)
|