mirror of
https://github.com/fmtlib/fmt.git
synced 2026-08-02 01:37:46 +08:00
* Fix undefined in core-test
Fixes "reference binding to null pointer" in BufferTest.Ctor
buffer.operator[] attempts to return a reference to `buffer.ptr_[0]` when `ptr_`
in `mock_buffer<int> buffer` is null.
* Fix undefined in printf-test
Fixes "signed integer overflow" in PrintfTest.Length
This occurs in `TestLength<long long>("ll")`, since its minimum value minus one
does not fit in long long.
* Fix undefined in printf %0$
Printf counts arguments from 1.
Fixes "shift exponent -4 is negative" in PrintfTest.InvalidArgIndex.
`do_get` is called with index -1 when `basic_printf_context.arg` is called with
id 4294967295 when basic_printf_context::get_arg subtracts 1 from arg_index 0 in
the format string "%0$d".
|
||
|---|---|---|
| .. | ||
| add-subdirectory-test | ||
| compile-error-test | ||
| cuda-test | ||
| find-package-test | ||
| fuzzing | ||
| gmock | ||
| gtest | ||
| assert-test.cc | ||
| chrono-test.cc | ||
| CMakeLists.txt | ||
| color-test.cc | ||
| compile-test.cc | ||
| core-test.cc | ||
| custom-formatter-test.cc | ||
| format | ||
| format-impl-test.cc | ||
| format-test.cc | ||
| gmock-gtest-all.cc | ||
| grisu-test.cc | ||
| gtest-extra-test.cc | ||
| gtest-extra.cc | ||
| gtest-extra.h | ||
| header-only-test2.cc | ||
| header-only-test.cc | ||
| locale-test.cc | ||
| mock-allocator.h | ||
| ostream-test.cc | ||
| posix-mock-test.cc | ||
| posix-mock.h | ||
| posix-test.cc | ||
| printf-test.cc | ||
| ranges-test.cc | ||
| scan-test.cc | ||
| scan.h | ||
| std-format-test.cc | ||
| test-assert.h | ||
| test-main.cc | ||
| util.cc | ||
| util.h | ||