Page MenuHomeFreeBSD

D20413.diff
No OneTemporary

D20413.diff

Index: head/sys/kern/kern_ctf.c
===================================================================
--- head/sys/kern/kern_ctf.c
+++ head/sys/kern/kern_ctf.c
@@ -193,8 +193,12 @@
NOCRED, NULL, td)) != 0)
goto out;
- /* Check the CTF magic number. (XXX check for big endian!) */
+ /* Check the CTF magic number. */
+#ifdef __LITTLE_ENDIAN__
if (ctf_hdr[0] != 0xf1 || ctf_hdr[1] != 0xcf) {
+#else
+ if (ctf_hdr[0] != 0xcf || ctf_hdr[1] != 0xf1) {
+#endif
printf("%s(%d): module %s has invalid format\n",
__func__, __LINE__, lf->pathname);
error = EFTYPE;

File Metadata

Mime Type
text/plain
Expires
Tue, Jul 7, 3:08 PM (14 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34802686
Default Alt Text
D20413.diff (579 B)

Event Timeline