[libcxx-commits] [PATCH] D155397: [libc++][format] Fixes an off by one error.

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jul 16 05:47:06 PDT 2023


Mordante created this revision.
Herald added a project: All.
Mordante published this revision for review.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D155397

Files:
  libcxx/include/__format/buffer.h
  libcxx/test/std/utilities/format/format.functions/format_tests.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155397.540770.patch
Type: text/x-patch
Size: 25984 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230716/a8feea8e/attachment-0001.bin>


More information about the libcxx-commits mailing list