Schrodinger ZHU Yifan 10ed050b34
[libc][CPP] make the string trap on OOM (#172260)
This PR makes the string trap on OOM.

Previously, the `__builtin_unreachable` has made debugging tricky as it
makes the control flow of OOM as an undefined behavior.
We can run into OOM with testing configuration easily where memory is
statically bounded.

We did not settle with the best solution of this but making it trap is
at least better than UB
in this case.
2025-12-17 05:03:39 -05:00
..

LLVM libc
=========

This directory and its subdirectories contain source code for llvm-libc,
a retargetable implementation of the C standard library.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.