This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [committed, PATCH] Check file size before getting section contents


On Mon, Jun 26, 2017 at 03:49:12PM -0700, H.J. Lu wrote:
>    filesz = bfd_get_file_size (abfd);
> +  if (filesz < 0)
>      {
>        /* This should never happen.  */
>        abort ();

This will abort for 2G files on some host/target combinations.  Why is
that correct?

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]