[all-commits] [llvm/llvm-project] 101f97: [flang][CodeGen] Avoid out-of-bounds memory access...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Wed May 22 08:52:40 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 101f977f2c218f4a27f3a04b3b324b61c80570d6
      https://github.com/llvm/llvm-project/commit/101f977f2c218f4a27f3a04b3b324b61c80570d6
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2024-05-22 (Wed, 22 May 2024)

  Changed paths:
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp

  Log Message:
  -----------
  [flang][CodeGen] Avoid out-of-bounds memory access in SelectCaseOp (#92955)

`SelectCaseOp::getCompareOperands` may return an empty range for the
"default" case. Do not dereference the range until it is expected to be
non-empty.

This was detected by address-sanitizer.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list