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@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>(