[all-commits] [llvm/llvm-project] 32145a: [flang][runtime] Better handling for integer input...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Apr 18 12:51:41 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 32145a5e18f87e4f672bbc051f00b8d57be98eb3
      https://github.com/llvm/llvm-project/commit/32145a5e18f87e4f672bbc051f00b8d57be98eb3
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2025-04-18 (Fri, 18 Apr 2025)

  Changed paths:
    M flang-rt/lib/runtime/edit-input.cpp

  Log Message:
  -----------
  [flang][runtime] Better handling for integer input into null address (#135987)

The original descriptor-only path for I/O checks for null data addresses
and crashes with a readable message, but there's no such check on the
new fast path for formatted integer input, and so a READ into (say) a
deallocated allocatable will crash with a segfault. Put a null data
address check on the new fast path.



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