Skip to content

Fix: Adding unhandled byteswaps for fixing endianness issues - #986

Merged
bbuchfink merged 1 commit into
bbuchfink:masterfrom
pranavkaruvally:s390x-fix
Sep 26, 2026
Merged

bbuchfink merged 1 commit into
bbuchfink:masterfrom
pranavkaruvally:s390x-fix

Conversation

@pranavkaruvally

Copy link
Copy Markdown
Contributor

Fixes issue reported in https://lists.debian.org/debian-s390/2026/09/msg00022.html

In read_seqinfo, data was being read from the file directly and stored into a SeqInfo object. This caused the members pos and seq_len to have data in the wrong byte order. The overloaded >> operator handles this perfectly.

In the function is_diamond_db, data is read from a file directly as raw bytes into a uint64_t variable magic_number. The original data in the file was little-endian and required a byteswap.

@bbuchfink bbuchfink left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@bbuchfink
bbuchfink merged commit 093dafa into bbuchfink:master Sep 26, 2026
@tillea

tillea commented Oct 21, 2026

Copy link
Copy Markdown

It seems this patch die not made it into your last release. It would help a lot if you could tag a release incorporating this patch since the Debian package again failed on s390x architecture and will not migrate to testing due to this.
Thanks a lot for your help, Andreas.

@bbuchfink

Copy link
Copy Markdown
Owner

Sure will do, this was posted after I posted the last release. Should be 1-2 weeks for the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants