Skip to content

12.2.1

Latest

Choose a tag to compare

@vitaut vitaut released this 07 Nov 16:45
· 1 commit to 12.x since this release
  • Fixed a heap buffer overflow on 32-bit targets when the size of a formatting buffer overflows, e.g. fmt::format(L"{:>{}}", s, 1100000000). Such allocations now throw std::bad_alloc.

  • Fixed an out-of-bounds read when parsing format specifiers of std::error_code (#4934). Thanks @IfkumRfnl.

  • Fixed a crash when formatting nullptr with FMT_COMPILE and an exception in fmt::to_string(nullptr); both now format it as 0x0 (#4993). Thanks @INo-xious.