[all-commits] [llvm/llvm-project] 5b4c35: [flang][unittests] Fix buffer underrun in LengthWi...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Mon Mar 11 11:40:10 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b4c35064760816e4c29921df8f7ff4f2621d4f9
      https://github.com/llvm/llvm-project/commit/5b4c35064760816e4c29921df8f7ff4f2621d4f9
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2024-03-11 (Mon, 11 Mar 2024)

  Changed paths:
    M flang/runtime/command.cpp

  Log Message:
  -----------
  [flang][unittests] Fix buffer underrun in LengthWithoutTrailingSpaces (#84382)

Account for the descriptor containing a zero-length string. Also, avoid
iterating backwards too far.

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