[libcxx-commits] [libcxx] [libc++] Fix `money_get::do_get` with huge input (PR #126273)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 1 10:50:02 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);
----------------
frederick-vs-ja wrote:

I'm now dropping changes in this frozen header.

https://github.com/llvm/llvm-project/pull/126273


More information about the libcxx-commits mailing list