[all-commits] [llvm/llvm-project] 2a7744: Do not dereference an array out of bound just to t...

serge-sans-paille via All-commits all-commits at lists.llvm.org
Mon Sep 21 03:08:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a774411174466010c69a2460c81b8d0d4f7165f
      https://github.com/llvm/llvm-project/commit/2a774411174466010c69a2460c81b8d0d4f7165f
  Author: serge-sans-paille <sguelton at redhat.com>
  Date:   2020-09-21 (Mon, 21 Sep 2020)

  Changed paths:
    M flang/lib/Parser/token-sequence.cpp

  Log Message:
  -----------
  Do not dereference an array out of bound just to take its address

This is UB by the standard, and caught by the libstdc++ asserts

Differential Revision: https://reviews.llvm.org/D87892




More information about the All-commits mailing list