bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/13534] ar mishandles files bigger than 2GB


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/13534] ar mishandles files bigger than 2GB
Date: Fri, 20 Jan 2012 14:43:02 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13534

--- Comment #7 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> 2012-01-20 14:43:02 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    address@hidden    2012-01-20 14:42:57

Modified files:
    bfd            : ChangeLog archive.c archive64.c bfdio.c 
                     libbfd-in.h libbfd.h 

Log message:
    PR binutils/13534
    * archive.c (_bfd_ar_sizepad): New function. Correctly install and
    pad the size field in an archive header.
    (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
    function for the archive size field.
    (bfd_generic_openr_next_archived_file): Likewise.
    (do_slurp_coff_armap): Likewise.
    (_bfd_write_archive_contents): Likewise.
    (_bfd_bsd44_write_ar_hdr): Use the new function.
    (bfd_ar_hdr_from_filesystem): Likewise.
    (_bfd_write_archive_contents): Likewise.
    (bsd_write_armap): Likewise.
    (coff_write_armap): Likewise.
    * archive64.c (bfd_elf64_archive_write_armap): Likewise.
    * bfdio.c (bfd_bread): Use correct type for archive element
    sizes.
    * ar.c (open_inarch): Likewise.
    (extract_file): Likewise.
    * libbfd-in.h (struct areltdata): Use correct types for
    parsed_size and extra_size fields.
    Prototype _bfd_ar_sizepad function.
    * libbfd.h: Regenerate.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5591&r2=1.5592
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/archive.c.diff?cvsroot=src&r1=1.80&r2=1.81
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/archive64.c.diff?cvsroot=src&r1=1.14&r2=1.15
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/bfdio.c.diff?cvsroot=src&r1=1.31&r2=1.32
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/libbfd-in.h.diff?cvsroot=src&r1=1.95&r2=1.96
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/libbfd.h.diff?cvsroot=src&r1=1.265&r2=1.266

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]