[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



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@xxxxxxxxx>
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.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits