[libcxx-commits] [libcxx] [libc++] Fix `money_get::do_get` with huge input (PR #126273)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Mar 1 03:46:55 PST 2025
================
@@ -2460,6 +2460,8 @@ _LIBCPP_HIDE_FROM_ABI void __double_or_nothing(unique_ptr<_Tp, void (*)(void*)>&
__throw_bad_alloc();
if (__owns)
__b.release();
+ else
+ std::memcpy(__t, __b.get(), __cur_cap);
----------------
mordante wrote:
For now I would suggest to remove this part of the changes, so we can move this patch forward.
https://github.com/llvm/llvm-project/pull/126273
More information about the libcxx-commits
mailing list