[all-commits] [llvm/llvm-project] 83290d: [libc++] Don't assume a valid range in find_if for...
Louis Dionne via All-commits
all-commits at lists.llvm.org
Tue Sep 15 07:23:37 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 83290d61f6ead40a5c38297a0442b63291ce7a48
https://github.com/llvm/llvm-project/commit/83290d61f6ead40a5c38297a0442b63291ce7a48
Author: Louis Dionne <ldionne.2 at gmail.com>
Date: 2026-09-15 (Tue, 15 Sep 2026)
Changed paths:
M libcxx/include/__algorithm/find_if.h
A libcxx/test/libcxx/algorithms/unaligned_empty_range.pass.cpp
Log Message:
-----------
[libc++] Don't assume a valid range in find_if for empty inputs (#213752)
Iterators for empty ranges are sometimes implemented using a
non-aligned sentinel value. Requiring proper alignment in that
case (which is part of the valid range assumption) causes a
hardening failure. Instead, don't make the assumption of a
valid range when the input range is empty in find_if.
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