[all-commits] [llvm/llvm-project] d484fe: [flang] Don't crash on initialization with a zero-...

Peter Klausler via All-commits all-commits at lists.llvm.org
Sat Jun 4 09:03:25 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d484fe93d4e827b4986b15f9db52099c925139b0
      https://github.com/llvm/llvm-project/commit/d484fe93d4e827b4986b15f9db52099c925139b0
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-06-04 (Sat, 04 Jun 2022)

  Changed paths:
    M flang/include/flang/Evaluate/initial-image.h
    M flang/lib/Evaluate/initial-image.cpp

  Log Message:
  -----------
  [flang] Don't crash on initialization with a zero-sized derived type

Avoid calls to memcpy with zero byte counts if their address argument
calculations may not be valid expressions.

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




More information about the All-commits mailing list