Summary: | ar mishandles 4GB files | ||
---|---|---|---|
Product: | binutils | Reporter: | Francois Gouget <fgouget> |
Component: | binutils | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nickc |
Priority: | P2 | ||
Version: | 2.24 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: |
A fix for 'ar tv' and 'ar x'
A fix for 'ar tv' and 'ar x' A fix for 'ar tv', 'ar p' and 'ar x' |
Description
Francois Gouget
2012-06-27 09:15:54 UTC
Created attachment 6489 [details]
A fix for 'ar tv' and 'ar x'
Updated the commit changelog to reference this bug and be more explicit about the ar commands being fixed.
Note that 'ar p' is also impacted: $ ~/binutils-cvs/binutils/ar p ar4G.ar >file4G $ ls -l file4G -rw-r--r-- 1 fgouget fgouget 104857600 Jun 27 11:29 file4G Created attachment 6490 [details]
A fix for 'ar tv', 'ar p' and 'ar x'
CVSROOT: /cvs/src Module name: src Changes by: nickc@sourceware.org 2012-06-29 12:59:49 Modified files: binutils : ChangeLog ar.c bucomm.c Log message: PR binutils/14302 * bucomm.c (print_arelt_descr): Correctly report the archive size field (for 'ar tv'). * ar.c (print_contents): Use correct types for archive element sizes (for 'ar p'). (extract_file): Likewise (for 'ar x'). Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/ChangeLog.diff?cvsroot=src&r1=1.1918&r2=1.1919 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/ar.c.diff?cvsroot=src&r1=1.84&r2=1.85 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/bucomm.c.diff?cvsroot=src&r1=1.45&r2=1.46 Hi Francois, Thanks for the bug report and patch, and please accept my apologies in getting round to reviewing it. The patch itself is fine, although there are a couple of places where a comment needs to be updated, and a couple of places where there are now redundant type cases. I have taken care of both of these things and applied your patch. Cheers Nick Thanks for tweaking the patch so it could be committed. |