[all-commits] [llvm/llvm-project] 2696d8: Windows: correct iteration of additional search paths

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Sat Apr 16 18:01:44 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2696d82fa0c323d92d8794f0a34ea9619888fae9
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2022-04-16 (Sat, 16 Apr 2022)

  Changed paths:
    M lldb/source/Plugins/Platform/Windows/PlatformWindows.cpp

  Log Message:
  Windows: correct iteration of additional search paths

This adjusts the path iteration - `paths` is a null-terminated sequence
of C strings, creating an array from a single contiguous buffer.  We
would previously continue to iterate indefinitely as we did not check if
we had encountered the terminator.

Found by inspection.

More information about the All-commits mailing list