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: [patch] gcc pr 78584 - libiberty @file parsing


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


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