diff options
author | joerg <joerg> | 2013-08-29 12:57:35 +0000 |
---|---|---|
committer | joerg <joerg> | 2013-08-29 12:57:35 +0000 |
commit | 6086d45b72b5272f5965ce3108e533e018263545 (patch) | |
tree | d28dc3cbe079e90257c7e4cb1ef82e54c90bd73d /mail | |
parent | daa08d9637a68dfea9e3fda7394cf1b59c34c0b9 (diff) | |
download | pkgsrc-6086d45b72b5272f5965ce3108e533e018263545.tar.gz |
Don't use dynamic_cast without RTTI. Don't use false as pointer literal.
Diffstat (limited to 'mail')
3 files changed, 47 insertions, 1 deletions
diff --git a/mail/thunderbird10/distinfo b/mail/thunderbird10/distinfo index e47ccafbdb4..e4eef5abfb6 100644 --- a/mail/thunderbird10/distinfo +++ b/mail/thunderbird10/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.14 2013/05/09 13:59:35 joerg Exp $ +$NetBSD: distinfo,v 1.15 2013/08/29 12:57:35 joerg Exp $ SHA1 (thunderbird-10.0.12esr.source.tar.bz2) = 260a3baca5eaa80bcc075b08c9f12016d61877de RMD160 (thunderbird-10.0.12esr.source.tar.bz2) = 63586fc3460f4522900b84f58805c3a3a9cfe7a6 @@ -75,6 +75,7 @@ SHA1 (patch-mozilla_ipc_chromium_src_chrome_common_ipc__channel__posix.cc) = 515 SHA1 (patch-mozilla_ipc_chromium_src_chrome_common_ipc__message__utils.h) = f55a0be54139ed8263aefcf1bd43e32cb93c7650 SHA1 (patch-mozilla_ipc_chromium_src_chrome_common_transport__dib.h) = c451010a3d2c638e70e1fcec876b20eea28cf2cf SHA1 (patch-mozilla_ipc_glue_GeckoChildProcessHost.cpp) = 3b4b7d9feacd477e89bfbb2bcebb3becfb8b1827 +SHA1 (patch-mozilla_ipc_ipdl_ipdl_lower.py) = f22685f06447b0160423e8b6dd7cf452cbf1aa21 SHA1 (patch-mozilla_js_src_build_autoconf_gcc-pr49911.m4) = 8aa13cbba888f0c077137686a7c9c791de58d800 SHA1 (patch-mozilla_js_src_jscpucfg.h) = 88a31fd62eda3bd7f95cae076a83b418e97e8412 SHA1 (patch-mozilla_js_src_methodjit_MethodJIT.cpp) = c27d2e4105ea47a0fe2bec42ed2e9192db925c8c @@ -88,6 +89,7 @@ SHA1 (patch-mozilla_nsprpub_pr_src_md_unix_uxrng.c) = 2f2781c848e12a21e48c9924de SHA1 (patch-mozilla_nsprpub_pr_src_pthreads_ptio.c) = 427757f6f67c900b748c8a9f64136006e9f36786 SHA1 (patch-mozilla_nsprpub_pr_src_pthreads_ptsynch.c) = 211775055f7693814f1431f1c2eab623adeda8c2 SHA1 (patch-mozilla_xpcom_Makefile.in) = 9428dfcb63383b400a612109688de83666307ccd +SHA1 (patch-mozilla_xpcom_base_nsTraceRefcntImpl.cpp) = e7d57ee7a47bb0c65a37d7d3d07728381849b878 SHA1 (patch-mozilla_xpcom_idl-parser_header.py) = 20576ed95f52b4511e1c44bce7d682574b85f630 SHA1 (patch-mozilla_xulrunner_app_Makefile.in) = b2273dad40cb3b6b492836cdbb7ec2ef7ef3aeac SHA1 (patch-mp) = c9bafe6774355e15902eca88eb1356bb1b1be0db diff --git a/mail/thunderbird10/patches/patch-mozilla_ipc_ipdl_ipdl_lower.py b/mail/thunderbird10/patches/patch-mozilla_ipc_ipdl_ipdl_lower.py new file mode 100644 index 00000000000..d2d86e10156 --- /dev/null +++ b/mail/thunderbird10/patches/patch-mozilla_ipc_ipdl_ipdl_lower.py @@ -0,0 +1,22 @@ +$NetBSD: patch-mozilla_ipc_ipdl_ipdl_lower.py,v 1.1 2013/08/29 12:57:35 joerg Exp $ + +--- mozilla/ipc/ipdl/ipdl/lower.py.orig 2013-01-05 14:22:10.000000000 +0000 ++++ mozilla/ipc/ipdl/ipdl/lower.py +@@ -3367,7 +3367,7 @@ class _GenerateProtocolActorCode(ipdl.as + # SharedMemory* CreateSharedMemory(size, type, bool, id_t*): + # nsAutoPtr<SharedMemory> seg(Shmem::Alloc(size, type, unsafe)); + # if (!shmem) +- # return false ++ # return null; + # Shmem s(seg, [nextshmemid]); + # Message descriptor; + # if (!s->ShareTo(subprocess, mId, descriptor) || +@@ -3395,7 +3395,7 @@ class _GenerateProtocolActorCode(ipdl.as + p.routingId())) + ]) + failif = StmtIf(ExprNot(descriptorvar)) +- failif.addifstmt(StmtReturn.FALSE) ++ failif.addifstmt(StmtReturn(ExprLiteral.NULL)) + createshmem.addstmt(failif) + + failif = StmtIf(ExprNot(ExprCall( diff --git a/mail/thunderbird10/patches/patch-mozilla_xpcom_base_nsTraceRefcntImpl.cpp b/mail/thunderbird10/patches/patch-mozilla_xpcom_base_nsTraceRefcntImpl.cpp new file mode 100644 index 00000000000..34daa0fda98 --- /dev/null +++ b/mail/thunderbird10/patches/patch-mozilla_xpcom_base_nsTraceRefcntImpl.cpp @@ -0,0 +1,22 @@ +$NetBSD: patch-mozilla_xpcom_base_nsTraceRefcntImpl.cpp,v 1.1 2013/08/29 12:57:35 joerg Exp $ + +--- mozilla/xpcom/base/nsTraceRefcntImpl.cpp.orig 2013-01-05 14:22:57.000000000 +0000 ++++ mozilla/xpcom/base/nsTraceRefcntImpl.cpp +@@ -1187,7 +1187,7 @@ NS_LogCOMPtrAddRef(void* aCOMPtr, nsISup + { + #if defined(NS_IMPL_REFCNT_LOGGING) && defined(HAVE_CPP_DYNAMIC_CAST_TO_VOID_PTR) + // Get the most-derived object. +- void *object = dynamic_cast<void *>(aObject); ++ void *object = reinterpret_cast<void *>(aObject); + + // This is a very indirect way of finding out what the class is + // of the object being logged. If we're logging a specific type, +@@ -1228,7 +1228,7 @@ NS_LogCOMPtrRelease(void* aCOMPtr, nsISu + { + #if defined(NS_IMPL_REFCNT_LOGGING) && defined(HAVE_CPP_DYNAMIC_CAST_TO_VOID_PTR) + // Get the most-derived object. +- void *object = dynamic_cast<void *>(aObject); ++ void *object = reinterpret_cast<void *>(aObject); + + // This is a very indirect way of finding out what the class is + // of the object being logged. If we're logging a specific type, |