0001-unordered-fix-copy-assign.patch 828 B

12345678910111213141516171819202122
  1. Upstream Patch for Unordered
  2. Prevent erroneous copying of groups data, update max load to properly propagate
  3. Signed-off-by: Michael Nosthoff <buildroot@heine.tech>
  4. Upstream: https://github.com/boostorg/unordered/commit/067884a4e213352e7c81c441f1453c54735c39f3
  5. diff --git a/include/boost/unordered/detail/foa/core.hpp b/include/boost/unordered/detail/foa/core.hpp
  6. index 239d05d3..7ae9f2c8 100644
  7. --- a/boost/unordered/detail/foa/core.hpp
  8. +++ b/boost/unordered/detail/foa/core.hpp
  9. @@ -1870,9 +1870,10 @@ private:
  10. void fast_copy_elements_from(const table_core& x)
  11. {
  12. - if(arrays.elements){
  13. + if(arrays.elements&&x.arrays.elements){
  14. copy_elements_array_from(x);
  15. copy_groups_array_from(x);
  16. + size_ctrl.ml=std::size_t(x.size_ctrl.ml);
  17. size_ctrl.size=std::size_t(x.size_ctrl.size);
  18. }
  19. }