[all-commits] [llvm/llvm-project] 23f258: [flang] Don't fold REPEAT() when the result would ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Sun Jan 29 12:15:00 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 23f258cebbeedd270154521ec3cef7e3b1035431
      https://github.com/llvm/llvm-project/commit/23f258cebbeedd270154521ec3cef7e3b1035431
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-01-29 (Sun, 29 Jan 2023)

  Changed paths:
    M flang/lib/Evaluate/character.h
    M flang/lib/Evaluate/fold-character.cpp
    M flang/test/Evaluate/errors01.f90

  Log Message:
  -----------
  [flang] Don't fold REPEAT() when the result would be too large

A test program shouldn't be able to crash the compiler by getting it to
fold REPEAT() with an absurdly large repetition count.

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




More information about the All-commits mailing list