aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorMarina Taylor <marina_taylor@apple.com>2025-07-16 12:15:23 +0100
committerGitHub <noreply@github.com>2025-07-16 12:15:23 +0100
commit73630d5e20c8f29aec426954f448079665caf3ab (patch)
tree4fce3b4248aa3a3b734047a106eaf63aba9bb93e /clang/lib/Frontend/InitPreprocessor.cpp
parentb117ccf40df16bcd0b24e2a91d8f749ddb7933f3 (diff)
downloadllvm-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