[Bug 519263] [NEW] Calculates 16 bit values incorrectly

Limpan linus at etnolit.se
Tue Feb 9 12:00:13 UTC 2010

Public bug reported:

Binary package hint: ghex

Expected GHex to calculate the 16 bit unsigned value to 512 when
selecting 0x0002 (little endian).

I have found that it matters if I select the higher byte first or the
lower byte first. It seems that GHex calculates the number of selected
bytes and then reads the bytes from where the pointer is at the moment.
I have attached a screen shot that depicts the miscalculation.

elprogrammet at elprogrammet-laptop:~$ lsb_release -rd
Description:	Ubuntu 9.10
Release:	9.10

elprogrammet at elprogrammet-laptop:~$ apt-cache policy ghex
  Installed: 2.24.0-1
  Candidate: 2.24.0-1
  Version table:
 *** 2.24.0-1 0
        500 http://se.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

** Affects: ghex (Ubuntu)
     Importance: Undecided
         Status: New

Calculates 16 bit values incorrectly
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com

More information about the universe-bugs mailing list