[all-commits] [llvm/llvm-project] 28ccf3: [pseudo] Fix an out-of-bound access for LRTable::A...

Haojian Wu via All-commits all-commits at lists.llvm.org
Thu Mar 3 05:28:09 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 28ccf326725d0fea8648834c8acdbdfe3aa40d7a
      https://github.com/llvm/llvm-project/commit/28ccf326725d0fea8648834c8acdbdfe3aa40d7a
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M clang/lib/Tooling/Syntax/Pseudo/LRTable.cpp

  Log Message:
  -----------
  [pseudo] Fix an out-of-bound access for LRTable::Actions.

Without this patch, when End == Start, we access Actions[Actions.end()]
though we return an empty result.
This fixes an assertion failure in MSVC STL debug build.




More information about the All-commits mailing list