ghex 64 bit singed and unsigned displays only show the bottom 32bits of the value.

Bug #1851033 reported by Andrew Aitchison on 2019-11-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ghex (Debian)
ghex (Ubuntu)

Bug Description

ghex version 3.18.4 (and recent previous releases) have an option to show 64bit hex values.
Unfortunately the displayed value is only 32bit.

The attached patch fixed the immediate bug by using a 64bit version of pow2.

Alternatively a better fix might be to sprintf the values of the individual bytes with:
   snprintf(convbuffer, sizeof(convbuffer), "0x%02X%02X%02X%02X%02X%02X%02X%02X",
# lsb_release -rd
Description: Ubuntu 19.10
Release: 19.10
(Also present in 19.04)
# apt-cache policy ghex
  Installed: 3.18.4-1
  Candidate: 3.18.4-1
  Version table:
     3.18.4-1 500
        500 eoan/universe amd64 Packages
 *** 3.18.4-1 100
        100 /var/lib/dpkg/status
Expected behaviour:
With "Show little endian decoding" and "Show unisigned and float as hexadecimal" ticked
the file 0123456789abcdef (for which od -tx1 gives
0000000 01 23 45 67 89 ab cd ef
) I would expect the "Unsigned 64 bit:" box to show
The actual behaviour is for this box to show
ie the top 32 bits have been zeroed.

Andrew Aitchison (werdnakendal) wrote :
Andrew Aitchison (werdnakendal) wrote :
Andrew Aitchison (werdnakendal) wrote :

Sorry. Attachment #2 is only 16 octets or 8 bytes long.

I emailed the upstream contact <email address hidden> in January 2019 and have heard nothing since.

The attachment "ghex-3.18.4-64bit.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Andrew Aitchison (werdnakendal) wrote :

There has been no activity in a week so I am confirming that "ghex-3.18.4-64bit.patch" is a patch, just in case the bot needs a response before allowing anything else to happen.

Andrew Aitchison (werdnakendal) wrote :

Upstream bug ( fixed by merge request

What should I do to get this fixed in Ubuntu ?

Andrew Aitchison (werdnakendal) wrote :

Still present in Ubuntu 20.04.
I got here via ubuntu-bug ghex

Changed in ghex (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.