[Bug 1270293] [NEW] 32-bit eu-strip fails for files greater than 2 GB.

Lei Zhang thestig at google.com
Fri Jan 17 20:58:52 UTC 2014


Public bug reported:

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

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

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to elfutils in Ubuntu.
https://bugs.launchpad.net/bugs/1270293

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

Status in “elfutils” package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/elfutils/+bug/1270293/+subscriptions



More information about the foundations-bugs mailing list