32-bit eu-strip fails for files greater than 2 GB.

Bug #1270293 reported by Lei Zhang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
elfutils (Ubuntu)
New
Undecided
Unassigned

Bug Description

We have a large binary on a 32-bit host where the following command failed:

eu-strip -o foo.stripped -f foo.debug foo

eu-strip: while computing checksum for debug information: Invalid argument

Here, foo.debug is over 2 GB. The crc code called pread() with a negative offset because crc32_file.c does not have LFS, off_t is only 32-bit, and the offset variable overflowed.

A small patch has already been committed upstream. [1] Any chance we can backport this to 12.04 LTS?

[1] https://git.fedorahosted.org/cgit/elfutils.git/commit/?id=dca862bff918446f7e6fffc7f62d75663c73028f

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.