Ondřej Bílka
|
a1ffb40e32
|
Use glibc_likely instead __builtin_expect.
|
2014-02-10 15:07:12 +01:00 |
|
Allan McRae
|
d4697bc93d
|
Update copyright notices with scripts/update-copyrights
|
2014-01-01 22:00:23 +10:00 |
|
Florian Weimer
|
91ce40854d
|
CVE-2013-4237, BZ #14699: Buffer overflow in readdir_r
* sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
member.
* sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
member.
* sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
* sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
Return delayed error code. Remove GETDENTS_64BIT_ALIGNED
conditional.
* sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
GETDENTS_64BIT_ALIGNED.
* sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
* manual/filesys.texi (Reading/Closing Directory): Document
ENAMETOOLONG return value of readdir_r. Recommend readdir more
strongly.
* manual/conf.texi (Limits for Files): Add portability note to
NAME_MAX, PATH_MAX.
(Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
|
2013-08-16 09:40:34 +02:00 |
|
Roland McGrath
|
1324e37f2e
|
Add missing #include in sysdeps/posix/opendir.c.
|
2013-05-01 09:27:09 -07:00 |
|
Joseph Myers
|
568035b787
|
Update copyright notices with scripts/update-copyrights.
|
2013-01-02 19:05:09 +00:00 |
|
Florian Weimer
|
172a631a1f
|
__alloc_dir: avoid integer overflow in malloc argument
|
2012-10-16 10:33:50 +02:00 |
|
Roland McGrath
|
a281decc87
|
Move common dirent implementation from sysdeps/unix to sysdeps/posix.
|
2012-08-07 14:47:34 -07:00 |
|