[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:07:55 PDT 2017
vitalybuka created this revision.
This reverts commit 79cf16bf224d6ac9fb9e0356c5947ebc4fd6ff92.
https://reviews.llvm.org/D31895
Files:
test/msan/ioctl.cc
test/msan/ioctl_custom.cc
Index: test/msan/ioctl_custom.cc
===================================================================
--- test/msan/ioctl_custom.cc
+++ 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;
Index: test/msan/ioctl.cc
===================================================================
--- test/msan/ioctl.cc
+++ 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);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31895.94693.patch
Type: text/x-patch
Size: 741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170410/93fc42a7/attachment.bin>
More information about the llvm-commits
mailing list