aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authormikhnenko <mikhnenko@yandex-team.com>2025-01-23 19:35:45 +0300
committermikhnenko <mikhnenko@yandex-team.com>2025-01-23 19:54:52 +0300
commit5bb79d41a5ed8c862b7d66ac2fe66afb38c6e9db (patch)
tree3d9808845e9df45e568cc093e3d58de325b6ef80 /contrib
parent1cd2a0aadd22286806362355c1fc6809b9b8770c (diff)
downloadydb-5bb79d41a5ed8c862b7d66ac2fe66afb38c6e9db.tar.gz
Get back some harderning checks
commit_hash:c33537c8c5610dd26434b4b948f9fb84707500d5
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libs/cxxsupp/libcxx/include/deque3
-rw-r--r--contrib/libs/cxxsupp/libcxx/patches/73-deque-disable-harderning.patch14
2 files changed, 3 insertions, 14 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/deque b/contrib/libs/cxxsupp/libcxx/include/deque
index eaaa765b85..d4238a495b 100644
--- a/contrib/libs/cxxsupp/libcxx/include/deque
+++ b/contrib/libs/cxxsupp/libcxx/include/deque
@@ -1497,8 +1497,7 @@ inline typename deque<_Tp, _Allocator>::reference deque<_Tp, _Allocator>::operat
template <class _Tp, class _Allocator>
inline typename deque<_Tp, _Allocator>::const_reference
deque<_Tp, _Allocator>::operator[](size_type __i) const _NOEXCEPT {
- // temporary disable this check for infra
- // _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__i < size(), "deque::operator[] index out of bounds");
+ _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__i < size(), "deque::operator[] index out of bounds");
size_type __p = __start_ + __i;
return *(*(__map_.begin() + __p / __block_size) + __p % __block_size);
}
diff --git a/contrib/libs/cxxsupp/libcxx/patches/73-deque-disable-harderning.patch b/contrib/libs/cxxsupp/libcxx/patches/73-deque-disable-harderning.patch
index 6c2e365b77..b7ae8d1acf 100644
--- a/contrib/libs/cxxsupp/libcxx/patches/73-deque-disable-harderning.patch
+++ b/contrib/libs/cxxsupp/libcxx/patches/73-deque-disable-harderning.patch
@@ -1,18 +1,8 @@
diff --git a/include/deque b/include/deque
-index 26bacb7..eaaa765 100644
+index 26bacb7..d4238a4 100644
--- a/include/deque
+++ b/include/deque
-@@ -1497,7 +1497,8 @@ inline typename deque<_Tp, _Allocator>::reference deque<_Tp, _Allocator>::operat
- template <class _Tp, class _Allocator>
- inline typename deque<_Tp, _Allocator>::const_reference
- deque<_Tp, _Allocator>::operator[](size_type __i) const _NOEXCEPT {
-- _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__i < size(), "deque::operator[] index out of bounds");
-+ // temporary disable this check for infra
-+ // _LIBCPP_ASSERT_VALID_ELEMENT_ACCESS(__i < size(), "deque::operator[] index out of bounds");
- size_type __p = __start_ + __i;
- return *(*(__map_.begin() + __p / __block_size) + __p % __block_size);
- }
-@@ -2431,7 +2432,8 @@ typename deque<_Tp, _Allocator>::iterator deque<_Tp, _Allocator>::erase(const_it
+@@ -2431,7 +2431,8 @@ typename deque<_Tp, _Allocator>::iterator deque<_Tp, _Allocator>::erase(const_it
template <class _Tp, class _Allocator>
typename deque<_Tp, _Allocator>::iterator deque<_Tp, _Allocator>::erase(const_iterator __f, const_iterator __l) {