ghex 64 bit signed and unsigned displays only show the bottom 32bits of the value.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ghex |
New
|
Undecided
|
|||
ghex (Debian) |
New
|
Unknown
|
|||
ghex (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
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(
);
-------
# lsb_release -rd
Description: Ubuntu 19.10
Release: 19.10
(Also present in 19.04)
-------
# apt-cache policy ghex
ghex:
Installed: 3.18.4-1
Candidate: 3.18.4-1
Version table:
3.18.4-1 500
500 http://
*** 3.18.4-1 100
100 /var/lib/
-------
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
0000010
) I would expect the "Unsigned 64 bit:" box to show
0xEFCDAB89674
The actual behaviour is for this box to show
0x00000000674
ie the top 32 bits have been zeroed.
Changed in ghex (Debian): | |
status: | Unknown → New |
summary: |
- ghex 64 bit singed and unsigned displays only show the bottom 32bits of + ghex 64 bit signed and unsigned displays only show the bottom 32bits of the value. |
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.