Bug 770920

Summary: xxd truncates offsetvim-common-7.3.315-1.fc15.x86_64
Product: [Fedora] Fedora Reporter: Maciej Żenczykowski <zenczykowski>
Component: vimAssignee: Karsten Hopp <karsten>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 15CC: karsten
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 16:44:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Maciej Żenczykowski 2011-12-30 08:41:03 UTC
Description of problem:

xxd -a huge_file

starts showing offset truncation.

it would appear that the offset is printed as the first 9 characters of sprintf(buf, "%07x: ", offset)

0000000: faeb 215b 4d61 5a65 426f 6f74 5d00 60b4  ..![MaZeBoot].`.
0000010: 0ebb 0700 89e5 8b76 10ff 4610 8a04 fe04  .......v..F.....
0000020: cd10 61c3 31c0 8ed0 bc00 7cfb e8df ff2a  ..a.1.....|....*
*
c848058000100 0200 189c 0f79 0060 c459 840d c559  .......y.`.Y...Y
c8480581028a3 1279 2c8a c759 0000 0000 6062 6979  (..y,..Y....`biy
c84805820308a c759 0100 0100 60c0 1d04 408a c759  0..Y....`...@..Y
c8480583014c9 1079 0100 ffff 8812 1179 0100 ffff  ...y.......y....
*
25433d5e4aab6 8dce c259 741e 8f9e a112 0000 0000  .....Yt.........
25433d5e58000 0000 8000 0000 86d2 54ab 0000 0000  ..........T.....
25433d5e60000 0000 0000 0000 0000 0000 0000 0000  ................

As you can see this starts being annoying above 256 MBs (a space gets dropped), is problematic above 4 GB (both colon and space get dropped, offset and value run together), and is outright incorrect above 64 GB (we start trimming the offset and running it together with the value).

Version-Release number of selected component (if applicable):

vim-common-7.3.315-1.fc15.x86_64

Comment 1 Fedora End Of Life 2012-08-07 16:44:13 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping