Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 635a079e5128f24a69f90de3141943153e46e5bb https://github.com/WebKit/WebKit/commit/635a079e5128f24a69f90de3141943153e46e5bb Author: Geoffrey Garen <gga...@apple.com> Date: 2024-11-02 (Sat, 02 Nov 2024)
Changed paths: M Source/WTF/wtf/IndexedRange.h Log Message: ----------- A little bit more safety for BoundsCheckedIterator https://bugs.webkit.org/show_bug.cgi?id=282493 rdar://139127354 Reviewed by Chris Dumez. Make the BoundsCheckedIterator constructor private because, similar to the two argument span constructor, it can't guarantee that the iterator belongs to the collection. Helper functions for constructing begin() and end() can offer that guarantee. * Source/WTF/wtf/IndexedRange.h: (WTF::BoundsCheckedIterator::begin): (WTF::BoundsCheckedIterator::end): (WTF::BoundsCheckedIterator::BoundsCheckedIterator): (WTF::IndexedRange::IndexedRange): (WTF::IndexedRange::begin): (WTF::IndexedRange::end): Canonical link: https://commits.webkit.org/286059@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes