[patch] gcc pr 78584 - libiberty @file parsing

Florian Weimer fweimer@redhat.com
Tue Dec 6 08:19:00 GMT 2016


On 12/06/2016 07:44 AM, DJ Delorie wrote:
> While the root solution for the bug is "don't do that", we should at
> least try to detect the obviously wrong case more gracefully.
> Committed.

> +#ifdef S_ISDIR
> +      if (stat (filename+1, &sb) < 0)
> +	continue;

Is there anything which maps stat to stat64?  Otherwise, this call can 
fail even for small files if the inode number cannot be represented in 
off_t.

Thanks,
Florian



More information about the Binutils mailing list