[PATCH] lib: Add missing config.h #include to crc32_file.c.

Lei Zhang thestig at google.com
Fri Jan 17 11:32:12 UTC 2014


Hi,

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lib-Add-missing-config.h-include-to-crc32_file.c.patch
Type: text/x-patch
Size: 740 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/elfutils-devel/attachments/20140117/663e28f3/attachment.bin>


More information about the elfutils-devel mailing list