[all-commits] [llvm/llvm-project] 3b3d62: [DFSan] Fix recvmsg wrapper to support MSG_TRUNC f...
Andrew Browne via All-commits
all-commits at lists.llvm.org
Tue May 21 15:06:14 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3b3d622be993faa985ed9cbb9ab098c8d6b8f681
https://github.com/llvm/llvm-project/commit/3b3d622be993faa985ed9cbb9ab098c8d6b8f681
Author: Andrew Browne <browneee at google.com>
Date: 2024-05-21 (Tue, 21 May 2024)
Changed paths:
M compiler-rt/lib/dfsan/dfsan_custom.cpp
M compiler-rt/test/dfsan/custom.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list