[tor-commits] [tor-browser] 28/37: Backed out changeset 1f239a458a10 (bug 1497246) for bustage.

gitolite role git at cupani.torproject.org
Wed Jun 22 18:27:37 UTC 2022


This is an automated email from the git hooks/post-receive script.

richard pushed a commit to branch tor-browser-91.11.0esr-11.5-1
in repository tor-browser.

commit c5287a9e7a8fe6ecff741dd310ff4f2eb1fed6c2
Author: Ryan VanderMeulen <ryanvm at gmail.com>
AuthorDate: Thu Jun 16 19:04:08 2022 -0400

    Backed out changeset 1f239a458a10 (bug 1497246) for bustage.
---
 xpcom/ds/nsTArray.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/xpcom/ds/nsTArray.h b/xpcom/ds/nsTArray.h
index 52bc260a75400..92fe4a46490ea 100644
--- a/xpcom/ds/nsTArray.h
+++ b/xpcom/ds/nsTArray.h
@@ -2461,9 +2461,6 @@ auto nsTArray_Impl<E, Alloc>::ReplaceElementsAtInternal(index_type aStart,
   if (MOZ_UNLIKELY(aStart > Length())) {
     InvalidArrayIndex_CRASH(aStart, Length());
   }
-  if (MOZ_UNLIKELY(aCount > Length() - aStart)) {
-    mozilla::detail::InvalidArrayIndex_CRASH(aStart + aCount, Length());
-  }
 
   // Adjust memory allocation up-front to catch errors.
   if (!ActualAlloc::Successful(this->template EnsureCapacity<ActualAlloc>(

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the tor-commits mailing list