Bug#771456: xxd: silent address column width overflow

Ph. Marek philipp.marek at linbit.com
Sat Nov 29 19:43:44 UTC 2014


Package: vim-common
Version: 2:7.4.488-2
Severity: normal

With big files, "xxd" formats the output wrong, and then causes wrong
address parsing when reading them again.

For example, a file that was (sparsely) truncated to 16G looks like this:

  -rw-r--r--  1 root root 17179869184 Nov 28 13:15 test.bin
  # xxd -a test.bin | tee test1
  0000000: 0000 0000 0000 0000 0000 0000 0000 0000  ................
  *
  3fffffff00000 0000 0000 0000 0000 0000 0000 0000  ................


When trying to restore via "xxd -r test1 test1.bin", what we get is

  -rw-r--r-- 1 root root 1125899905794062 Nov 28 19:22 test2

which is clearly a different thing.


Please fix the output, and (potentially) the input verification.


Thank you!


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.17-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vim-common depends on:
ii  libc6  2.19-13

Versions of packages vim-common recommends:
ii  vim-athena [vim]  2:7.4.488-2
ii  vim-gnome [vim]   2:7.4.488-2

vim-common suggests no packages.

-- no debconf information



More information about the pkg-vim-maintainers mailing list