[all-commits] [llvm/llvm-project] 7583c7: [libc++][format] Fixes an off by one error.
Mark de Wever via All-commits
all-commits at lists.llvm.org
Mon Jul 17 09:01:36 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7583c73bc4faf2b37f6c75ec64eddaa99f058b65
https://github.com/llvm/llvm-project/commit/7583c73bc4faf2b37f6c75ec64eddaa99f058b65
Author: Mark de Wever <koraq at xs4all.nl>
Date: 2023-07-17 (Mon, 17 Jul 2023)
Changed paths:
M libcxx/include/__format/buffer.h
M libcxx/test/std/utilities/format/format.functions/format_tests.h
Log Message:
-----------
[libc++][format] Fixes an off by one error.
The post-condition on the functions is that the buffer is not full.
This post-conditon is used as pre-condition of the push_back function.
When a copy, fill, of transform function exactly fit in the buffer this
post-condition was validated.
Reviewed By: #libc, ldionne
Differential Revision: https://reviews.llvm.org/D155397
More information about the All-commits
mailing list