[PATCH] D17751: [DFSan] Fix test_inet_pton for big endian archs
Mohit Bhakkad via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 1 00:40:57 PST 2016
mohit.bhakkad updated this revision to Diff 49461.
mohit.bhakkad added a comment.
Changed as suggested.
Repository:
rL LLVM
http://reviews.llvm.org/D17751
Files:
test/dfsan/custom.cc
Index: test/dfsan/custom.cc
===================================================================
--- test/dfsan/custom.cc
+++ test/dfsan/custom.cc
@@ -536,7 +536,7 @@
int ret4 = inet_pton(AF_INET, addr4, &in4);
assert(ret4 == 1);
ASSERT_READ_LABEL(&in4, sizeof(in4), i_label);
- assert(in4.s_addr == 0x0100007f);
+ assert(in4.s_addr == htonl(0x7f000001));
char addr6[] = "::1";
dfsan_set_label(j_label, addr6 + 3, 1);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17751.49461.patch
Type: text/x-patch
Size: 436 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160301/9e57213d/attachment.bin>
More information about the llvm-commits
mailing list