[Bug 210715] ext[234] and ntfs detection is little endian specific

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jun 30 00:50:48 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=210715

            Bug ID: 210715
           Summary: ext[234] and ntfs detection is little endian specific
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: brooks at FreeBSD.org
                CC: trasz at FreeBSD.org

The tests to ext2, ext3, ext4, and ntfs all fail on mips64 (presumably also
sparc64).  A quick glance at the code shows no attempt to adjust the endianness
of constants before comparison.  For example this bit from ntfs.c:

#define NTFS_FILEMAGIC          ((uint32_t)(0x454C4946))
...
       if (fr->fr_hdrmagic != NTFS_FILEMAGIC)
                goto fail;

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list