llvm-project
176dff4a - [lldb][windows] fix cross DLL file descriptor lookup crash (#195855)

Commit
3 days ago
[lldb][windows] fix cross DLL file descriptor lookup crash (#195855) On Windows, file descriptors are only valid in the same DLL: they are really just handles mapped to an index in a table in the CRT. Calling a liblldb method with a file descriptor from lldb-dap will cause the program to crash. See https://github.com/llvm/llvm-project/issues/193971. This patch fixes the issue by refactoring the `NativeFile` constructors so that they no longer try to convert `FILE` types to handles through the CRT lookup table.
Parents
Loading