diff options
author | Andrew Browne <browneee@google.com> | 2024-05-21 15:05:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 15:05:52 -0700 |
commit | 3b3d622be993faa985ed9cbb9ab098c8d6b8f681 (patch) | |
tree | ac841af7a04104bbceac23457ce08cde39b79ba9 /clang/lib/Parse/ParseDecl.cpp | |
parent | df626dd11c360c58eddae813ce6a0524d0a53696 (diff) | |
download | llvm-3b3d622be993faa985ed9cbb9ab098c8d6b8f681.zip llvm-3b3d622be993faa985ed9cbb9ab098c8d6b8f681.tar.gz llvm-3b3d622be993faa985ed9cbb9ab098c8d6b8f681.tar.bz2 |
[DFSan] Fix recvmsg wrapper to support MSG_TRUNC flag. (#92599)
The MSG_TRUNC flag makes recvmsg return the real length of the packet,
even if it was too big to fit in the provided buffer. This is commonly
used together with MSG_PEEK.
Without this patch, dfsan's clear_msghdr_labels expects the return value
of recvmsg (size recieved) to be less than or equal to the iov buffer
length where recvmsg writes data, resulting in a crash.
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
0 files changed, 0 insertions, 0 deletions