32-bit eu-strip fails for files greater than 2 GB.
Bug #1270293 reported by
Lei Zhang
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:/
To post a comment you must log in.