[PATCH] D17751: [DFSan] Fix test_inet_pton for big endian archs
Mohit Bhakkad via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 9 00:05:33 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL263001: [DFSan] Fix test_inet_pton for big endian archs (authored by mohit.bhakkad).
Changed prior to commit:
http://reviews.llvm.org/D17751?vs=49462&id=50110#toc
Repository:
rL LLVM
http://reviews.llvm.org/D17751
Files:
compiler-rt/trunk/test/dfsan/custom.cc
Index: compiler-rt/trunk/test/dfsan/custom.cc
===================================================================
--- compiler-rt/trunk/test/dfsan/custom.cc
+++ compiler-rt/trunk/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.50110.patch
Type: text/x-patch
Size: 490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160309/314739c9/attachment.bin>
More information about the llvm-commits
mailing list