[PATCH] D31895: [msan] Replace AF_INET with AF_UNIX to avoid IPv4 vs IPv6 issues.
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 10 11:10:47 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL299860: [msan] Replace AF_INET with AF_UNIX to avoid IPv4 vs IPv6 issues. (authored by vitalybuka).
Changed prior to commit:
https://reviews.llvm.org/D31895?vs=94693&id=94702#toc
Repository:
rL LLVM
https://reviews.llvm.org/D31895
Files:
compiler-rt/trunk/test/msan/ioctl.cc
compiler-rt/trunk/test/msan/ioctl_custom.cc
Index: compiler-rt/trunk/test/msan/ioctl.cc
===================================================================
--- compiler-rt/trunk/test/msan/ioctl.cc
+++ compiler-rt/trunk/test/msan/ioctl.cc
@@ -8,7 +8,7 @@
#include <unistd.h>
int main(int argc, char **argv) {
- int fd = socket(AF_INET, SOCK_DGRAM, 0);
+ int fd = socket(AF_UNIX, SOCK_DGRAM, 0);
unsigned int z;
int res = ioctl(fd, FIOGETOWN, &z);
Index: compiler-rt/trunk/test/msan/ioctl_custom.cc
===================================================================
--- compiler-rt/trunk/test/msan/ioctl_custom.cc
+++ compiler-rt/trunk/test/msan/ioctl_custom.cc
@@ -14,7 +14,7 @@
#include <unistd.h>
int main(int argc, char **argv) {
- int fd = socket(AF_INET, SOCK_STREAM, 0);
+ int fd = socket(AF_UNIX, SOCK_STREAM, 0);
struct ifreq ifreqs[20];
struct ifconf ifc;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31895.94702.patch
Type: text/x-patch
Size: 849 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170410/6e64e528/attachment.bin>
More information about the llvm-commits
mailing list