[all-commits] [llvm/llvm-project] ebec4d: [flang] Fix use-after-free cases found by valgrind...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Jan 14 12:56:55 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ebec4d6369cbf9bbd64236b02d90e8f3597ad103
      https://github.com/llvm/llvm-project/commit/ebec4d6369cbf9bbd64236b02d90e8f3597ad103
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-01-14 (Tue, 14 Jan 2025)

  Changed paths:
    M flang/include/flang/Evaluate/traverse.h
    M flang/include/flang/Evaluate/variable.h

  Log Message:
  -----------
  [flang] Fix use-after-free cases found by valgrind (#122394)

The expression traversal library needs to use interfaces into triplets
(and substrings) that return pointers to nested expressions, rather than
optional copies of them, since at least one semantic analysis collects a
set of references to some subexpression representation class instances,
and those references obviously can't point to local copies of objects.

Fixes https://github.com/llvm/llvm-project/issues/121999.



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