mirror of
https://github.com/boostorg/log.git
synced 2026-01-31 08:12:30 +00:00
Apparently, std::codecvt::do_length in libstdc++ from gcc 11.2 accesses input characters outside the input range if max is specified larger than the input range. This causes buffer overflow and a crash. Use the input range size as the max limit, which should have the same effect as the previous hardcoded limit. gcc bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105857