[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
Tue Feb 25 11:00:54 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:
I had a talk about what to do with these headers with @ldionne earlier today, and we asked @philnik777 whether these frozen headers should be changed.
https://github.com/llvm/llvm-project/pull/126273
More information about the libcxx-commits
mailing list