[all-commits] [llvm/llvm-project] a2fe17: [libc++] Fix reverse_iterator test when UBSan is e...

Louis Dionne via All-commits all-commits at lists.llvm.org
Wed Mar 4 08:35:50 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a2fe17cdc6501ca0a18218487fc35afef4f5f17a
      https://github.com/llvm/llvm-project/commit/a2fe17cdc6501ca0a18218487fc35afef4f5f17a
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-03-04 (Wed, 04 Mar 2020)

  Changed paths:
    M libcxx/test/std/iterators/predef.iterators/reverse.iterators/reverse.iterator/types.pass.cpp

  Log Message:
  -----------
  [libc++] Fix reverse_iterator test when UBSan is enabled

The goal of the test was only to check that we could access the
`this->current` member of std::reverse_iterator from a derived
class, but in doing so we incremented a null iterator, which is UB.




More information about the All-commits mailing list