libctf: we do in fact support foreign-endian old versions
authorNick Alcock <nick.alcock@oracle.com>
Fri, 5 Jul 2024 14:53:14 +0000 (15:53 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Thu, 1 Aug 2024 13:30:20 +0000 (14:30 +0100)
commitcc7069a8c89a58eb97222fe78129a120ce8f01d2
tree7f74e5ec1f86982e2033e08ba920673a2db21a14
parente8c963b75c269c7f63379ee7523c8f845a95c52e
libctf: we do in fact support foreign-endian old versions

The worry that caused this to not be supported was because we don't
bother endian-flipping version-related fields before checking them.
But they're all unsigned chars anyway, and don't need any flipping at
all.

This should be supported and should already work.  Enable it.

libctf/
* ctf-open.c (ctf_bufopen): Don't prohibit foreign-endian
        upgrades.
libctf/ctf-open.c