summaryrefslogtreecommitdiff
path: root/dev-libs/boost/files/boost-1.83.0-unordered-uaf.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-08 06:02:21 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-08 06:02:21 +0100
commit32c16465e56b0122cf6e5a4625e9c7b56b107b07 (patch)
tree600c43152c825fda5f210dd7cb52b357eb6f2602 /dev-libs/boost/files/boost-1.83.0-unordered-uaf.patch
parent607c0755d4f6476e326fb33795df7216a7bcff18 (diff)
gentoo auto-resync : 08:10:2023 - 06:02:21
Diffstat (limited to 'dev-libs/boost/files/boost-1.83.0-unordered-uaf.patch')
-rw-r--r--dev-libs/boost/files/boost-1.83.0-unordered-uaf.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-libs/boost/files/boost-1.83.0-unordered-uaf.patch b/dev-libs/boost/files/boost-1.83.0-unordered-uaf.patch
new file mode 100644
index 000000000000..f9ecf675fd96
--- /dev/null
+++ b/dev-libs/boost/files/boost-1.83.0-unordered-uaf.patch
@@ -0,0 +1,18 @@
+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);
+ }
+ }
+