bug-grep
[Top][All Lists]
Advanced

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

bug#21827: Large file support


From: Paul Eggert
Subject: bug#21827: Large file support
Date: Thu, 5 Nov 2015 18:47:18 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Eric Blake wrote:
Can't we probe for the existence of openat64(), and then probe whether
the bug exists, and if so, replace openat() for that platform?

If one built with glibc 2.21 the probe would report no problem, with the failure occurring only when one ran the prebuilt executable, dynamically linked with glibc 2.22. Possibly we could work around the bug at run-time, by falling back on syscall when openat fails with errno == EOVERFLOW, when compiled with glibc 2.22 or earlier. It's not the sort of code I'd like to write or test or maintain, though -- syscall is so machine-dependent.

>The bug was introduced on 2015-06-04 and fixed on 2015-08-10 in glibc.
I guess it depends on whether we think these flawed versions are common
in the wild, or whether vendors have patched the major distros and only
self-built glibc remains vulnerable, on whether it is worth our effort.

Yes, that's exactly it. In the past we've sometimes worked around these bugs and sometimes not; it's a judgment call. My guess is that the bug is so severe and affects so many apps that it'll get fixed pretty quickly in the wild.





reply via email to

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