[all-commits] [llvm/llvm-project] 9bc2dd: [libc++] Add an assertion for monotonic_buffer_res...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Fri Jul 31 10:22:20 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9bc2dd1a7015b58c9c68e8174e5d2756d955c0ca
https://github.com/llvm/llvm-project/commit/9bc2dd1a7015b58c9c68e8174e5d2756d955c0ca
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2026-07-31 (Fri, 31 Jul 2026)
Changed paths:
M libcxx/include/__memory_resource/monotonic_buffer_resource.h
A libcxx/test/libcxx/utilities/utility/mem.res/mem.res.monotonic.buffer/mem.res.monotonic.buffer.ctor/assert.initial_size.pass.cpp
Log Message:
-----------
[libc++] Add an assertion for monotonic_buffer_resource's initial_size (#213136)
[mem.res.monotonic.buffer.ctor] requires initial_size to be greater than
zero for the two constructors that take one, but we silently accepted
zero. Add a hardening assertion for that precondition.
Fixes #213059
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list