Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178125251
D44472.1796046741.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
512 B
Referenced Files
None
Subscribers
None
D44472.1796046741.diff
View Options
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -2108,7 +2108,7 @@
hdr.dirlistlen = 0;
return (NULL);
}
- is_le = /*le32toh(1) == 1 || */ hdr.magic == ELFHINTS_MAGIC;
+ is_le = hdr.magic == htole32(ELFHINTS_MAGIC);
dbg("host byte-order: %s-endian", le32toh(1) == 1 ? "little" : "big");
dbg("hints file byte-order: %s-endian", is_le ? "little" : "big");
dbg("verify swap macros: le32toh(0x12345678) == %#010x, "
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 30, 1:52 PM (23 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42106728
Default Alt Text
D44472.1796046741.diff (512 B)
Attached To
Mode
D44472: rtld: fix check for endianess of elf hints file
Attached
Detach File
Event Timeline