diff options
author | Marina Taylor <marina_taylor@apple.com> | 2025-07-16 12:15:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-16 12:15:23 +0100 |
commit | 73630d5e20c8f29aec426954f448079665caf3ab (patch) | |
tree | 4fce3b4248aa3a3b734047a106eaf63aba9bb93e /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | b117ccf40df16bcd0b24e2a91d8f749ddb7933f3 (diff) | |
download | llvm-73630d5e20c8f29aec426954f448079665caf3ab.zip llvm-73630d5e20c8f29aec426954f448079665caf3ab.tar.gz llvm-73630d5e20c8f29aec426954f448079665caf3ab.tar.bz2 |
[Support] Error if SocketPath is too long (#148903)
If the path is longer than sockaddr_un's buffer, it will be truncated,
at which point it may become indistinguishable from similar truncated
paths. This will cause `bind` to fail with an "Address already in use"
error. There is some existing code that checks `fs::exists` to catch
these errors, but since `fs::exists` compares the full un-truncated
paths, a too-long path will prevent those checks from working.
rdar://154397133
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions