You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-full-overlay/dev-libs/boost/files/boost-1.83.0-unordered-uaf....

19 lines
556 B

https://www.boost.org/patches/1_83_0/0001-unordered-fix-copy-assign.patch
https://github.com/boostorg/unordered/issues/205
--- a/boost/unordered/detail/foa/core.hpp
+++ b/boost/unordered/detail/foa/core.hpp
@@ -1870,9 +1870,10 @@ private:
void fast_copy_elements_from(const table_core& x)
{
- if(arrays.elements){
+ if(arrays.elements&&x.arrays.elements){
copy_elements_array_from(x);
copy_groups_array_from(x);
+ size_ctrl.ml=std::size_t(x.size_ctrl.ml);
size_ctrl.size=std::size_t(x.size_ctrl.size);
}
}