Public bug reported:
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",
in[7],in[6],in[5],in[4],in[3],in[2],in[1],in[0]
);
-------------------------------------
# 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://gb.archive.ubuntu.com/ubuntu 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
0000010
) I would expect the "Unsigned 64 bit:" box to show
0xEFCDAB8967452301
The actual behaviour is for this box to show
0x0000000067452301
ie the top 32 bits have been zeroed.
** Affects: ghex
Importance: Undecided
Status: New
** Affects: ghex (Ubuntu)
Importance: Undecided
Status: New
** Patch added: "ghex-3.18.4-64bit.patch"
https://bugs.launchpad.net/bugs/1851033/+attachment/5302267/+files/ghex-3.18.4-64bit.patch
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1851033
Title:
ghex 64 bit singed and unsigned displays only show the bottom 32bits
of the value.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ghex/+bug/1851033/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs