[File] [PATCH] readelf: Fix the size limit of the elf note section

Vincent Mihalkovic vmihalko at redhat.com
Thu Feb 9 15:28:32 UTC 2023


Hi,

Since the file command is used in `rpmbuild`, even minor bugs often affect
the whole fedora ecosystem. That's what also happens here:
https://bugzilla.redhat.com/show_bug.cgi?id=2167964.

The cause of this problem is the commit
https://github.com/file/file/commit/e1233247bbe4d2d66b891224336a23384a93cce1
which
is a fix for https://bugs.astron.com/view.php?id=372. The commit message
says that the limit is 128M, but the actual limit is only 64M.
I fixed this in the proposed patch. But some users encounter this error
with e.g., "Thunderbird/libxul.so" whose size is 128260532 ~ 122MB which is
quite near 128MB. It may be only a matter of time before a file crossing
this limit appears...

vincent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.astron.com/pipermail/file/attachments/20230209/b3ace563/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file-5.43-readelf-limit.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20230209/b3ace563/attachment.bin>


More information about the File mailing list