[all-commits] [llvm/llvm-project] 01f2f8: [flang-rt] Fixed uninitialized class member variab...

Eugene Epshteyn via All-commits all-commits at lists.llvm.org
Tue Feb 18 12:53:13 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 01f2f81f2b9a592e64a7efe9b1ee154d0979ee0a
      https://github.com/llvm/llvm-project/commit/01f2f81f2b9a592e64a7efe9b1ee154d0979ee0a
  Author: Eugene Epshteyn <59377284+eugeneepshteyn at users.noreply.github.com>
  Date:   2025-02-18 (Tue, 18 Feb 2025)

  Changed paths:
    M flang-rt/include/flang-rt/runtime/io-stmt.h

  Log Message:
  -----------
  [flang-rt] Fixed uninitialized class member variable (#127681)

valgrind complained that `OpenStatementState::pathLength_` was used
before it was initialized, when a file was opened with
`status='scratch'`. The code seems to expect that `pathLengh_` should be
initialized to 0, so added default initialization to the declaration.



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