[libcxx-commits] [PATCH] D113600: [libc++] Fix segmentation fault in __do_put_integral
Marco Falke via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Nov 10 12:26:48 PST 2021
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGfaa019c0e38e: [libc++] Fix segmentation fault in __do_put_integral (authored by MarcoFalke).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113600/new/
https://reviews.llvm.org/D113600
Files:
libcxx/include/locale
Index: libcxx/include/locale
===================================================================
--- libcxx/include/locale
+++ libcxx/include/locale
@@ -1476,7 +1476,7 @@
char const* __len) const
{
// Stage 1 - Get number in narrow char
- char __fmt[6] = {'%', 0};
+ char __fmt[8] = {'%', 0};
this->__format_int(__fmt+1, __len, is_signed<_Integral>::value, __iob.flags());
// Worst case is octal, with showbase enabled. Note that octal is always
// printed as an unsigned value.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113600.386282.patch
Type: text/x-patch
Size: 559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211110/1c379024/attachment.bin>
More information about the libcxx-commits
mailing list