Victor Zverovich 615acd84dd Fix use-after-free in basic_memory_buffer move assignment
operator= deallocates the destination's storage but leaves it pointing at
the freed block with a stale capacity and size. When the allocator doesn't
propagate and the two allocators are unequal, move_alloc copies into that
pointer rather than taking over the source's storage, so it writes to freed
memory and the destructor then frees the same block again.

Restore the inline buffer after deallocating and before calling move().
2026-10-16 12:44:14 -07:00
..
add-subdirectory-test Make base.h a compatibility header 2026-09-07 17:11:35 -07:00
compile-error-test Avoid dropping null byte in format string (#4732) 2026-04-23 09:34:27 -07:00
cuda-test Make base.h a compatibility header 2026-09-07 17:11:35 -07:00
find-package-test Bump tested CMake version to 3.25 2022-11-30 08:09:32 -08:00
fuzzing Make base.h a compatibility header 2026-09-07 17:11:35 -07:00
gtest Apply cmake-format 2026-03-03 15:49:40 -08:00
static-export-test Bump tested CMake version to 3.25 2022-11-30 08:09:32 -08:00
args-test.cc Simplify named_arg_count test 2026-09-11 08:05:34 -07:00
assert-test.cc Make base.h a compatibility header 2026-09-07 17:11:35 -07:00
c-test.c Add a test for fmt_print 2026-06-08 08:18:43 +02:00
chrono-test.cc Don't require std::locale in chrono.h when FMT_USE_LOCALE is 0 (#4921) 2026-09-16 08:37:57 -07:00
CMakeLists.txt Run format tests without locale support 2026-09-27 10:15:42 -07:00
color-test.cc Unify copyright notices 2026-05-31 08:54:06 -07:00
compile-test.cc Simplify compiled variant and expected tests 2026-10-08 12:00:06 -07:00
core-test.cc Make base.h a compatibility header 2026-09-07 17:11:35 -07:00
detect-stdfs.cc Unify copyright notices 2026-05-31 08:54:06 -07:00
enforce-checks-test.cc Unify copyright notices 2026-05-31 08:54:06 -07:00
enum-test.cc Format enums annotated with fmt::as_underlying 2026-09-26 11:07:11 -07:00
format-impl-test.cc Unify copyright notices 2026-05-31 08:54:06 -07:00
format-test.cc Fix use-after-free in basic_memory_buffer move assignment 2026-10-16 12:44:14 -07:00
gtest-extra-test.cc Unify copyright notices 2026-05-31 08:54:06 -07:00
gtest-extra.cc Unify copyright notices 2026-05-31 08:54:06 -07:00
gtest-extra.h Unify copyright notices 2026-05-31 08:54:06 -07:00
header-only-test.cc Make base.h a compatibility header 2026-09-07 17:11:35 -07:00
mock-allocator.h Unify copyright notices 2026-05-31 08:54:06 -07:00
module-test.cc Make base.h a compatibility header 2026-09-07 17:11:35 -07:00
no-builtin-types-test.cc Unify copyright notices 2026-05-31 08:54:06 -07:00
noexception-test.cc Make base.h a compatibility header 2026-09-07 17:11:35 -07:00
os-test.cc Unify copyright notices 2026-05-31 08:54:06 -07:00
ostream-test.cc Enable ASan and UBSan in supported Linux CI builds (#4969) 2026-10-08 11:42:47 -07:00
perf-sanity.cc Cleanup test 2024-07-17 06:59:24 -07:00
posix-mock-test.cc Unify copyright notices 2026-05-31 08:54:06 -07:00
posix-mock.h Unify copyright notices 2026-05-31 08:54:06 -07:00
printf-test.cc Remove redundant printf tests 2026-09-20 17:30:26 -07:00
ranges-odr-test.cc Unify copyright notices 2026-05-31 08:54:06 -07:00
ranges-test.cc Remove redundant escape tests 2026-10-04 08:30:56 -07:00
scan-test.cc Unify copyright notices 2026-05-31 08:54:06 -07:00
scan.h Unify copyright notices 2026-05-31 08:54:06 -07:00
std-test.cc Fix out-of-bounds read in error code format parsing (#4934) 2026-09-07 11:35:29 -07:00
test-assert.h Unify copyright notices 2026-05-31 08:54:06 -07:00
test-main.cc Unify copyright notices 2026-05-31 08:54:06 -07:00
unicode-test.cc Unify copyright notices 2026-05-31 08:54:06 -07:00
util.cc Unify copyright notices 2026-05-31 08:54:06 -07:00
util.h Unify copyright notices 2026-05-31 08:54:06 -07:00
xchar-test.cc Optimize buffered padding with chunked fills (#4959) 2026-10-02 11:44:42 -07:00