Issue 63809
Summary deque is missing safe libc++ hardening checks
Labels new issue
Assignees
Reporter danakj
    https://libcxx.llvm.org/UsingLibcxx.html#enabling-the-safe-libc-mode

vector's operator[] uses _LIBCPP_ASSERT_UNCATEGORIZED: https://github.com/llvm/llvm-project/blob/7b64d761098fdbb426b27ca58a9dc8f31917dcba/libcxx/include/vector#L1534C5-L1534C33

deque's operator[] just reads OOB without an assert: https://github.com/llvm/llvm-project/blob/7b64d761098fdbb426b27ca58a9dc8f31917dcba/libcxx/include/deque#L1645-L1661

Same for [deque::front()](https://github.com/llvm/llvm-project/blob/7b64d761098fdbb426b27ca58a9dc8f31917dcba/libcxx/include/deque#L1699) and other methods that return a reference.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to