[all-commits] [llvm/llvm-project] ca0612: [libc++] Fix `money_get::do_get` with huge input (...

A. Jiang via All-commits all-commits at lists.llvm.org
Sun Mar 2 15:14:00 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca0612c383bc1c487b8dabff9e5830af173a7da8
      https://github.com/llvm/llvm-project/commit/ca0612c383bc1c487b8dabff9e5830af173a7da8
  Author: A. Jiang <de34 at live.cn>
  Date:   2025-03-03 (Mon, 03 Mar 2025)

  Changed paths:
    M libcxx/include/locale
    A libcxx/test/std/localization/locale.categories/category.monetary/locale.money.get/locale.money.get.members/get_long_double_overlong.pass.cpp

  Log Message:
  -----------
  [libc++] Fix `money_get::do_get` with huge input (#126273)

`money_get::do_get` needs to be fixed to handle extremely huge input
(e.g. more than 100 digits).
1. `__double_or_nothing` needs to copy the contents of the stack buffer
on the initial allocation.
2. The `sscanf` call in `do_get` needs to scan the dynamic buffer if
dynamic allocation happens.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list