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
..
2009-07-31 11:53:35 -07:00
2013-06-15 12:24:15 +05:30
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00
2007-09-15 22:38:32 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-04 16:29:39 +00:00
2013-02-21 22:21:52 +00:00
2013-01-02 19:05:09 +00:00
2013-06-28 16:50:48 -05:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-04 16:29:39 +00:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-08 20:06:30 +00:00
2013-01-02 19:05:09 +00:00
2013-02-08 01:12:11 +00:00
2013-02-08 01:12:11 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2012-01-07 23:57:22 -05:00
2012-05-30 08:33:26 -07:00
2009-05-31 17:46:55 -07:00
2013-02-04 16:29:39 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2012-06-01 13:22:46 -07:00
2013-02-21 22:21:52 +00:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-21 22:21:52 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2006-01-21 08:21:04 +00:00
2013-01-02 19:05:09 +00:00
2013-08-16 09:40:34 +02:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-31 22:59:04 +00:00
2013-02-21 22:21:52 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-08 20:06:30 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00
2013-02-13 23:30:40 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2012-05-04 12:46:23 +02:00
2013-01-02 19:05:09 +00:00
2013-02-21 22:21:52 +00:00
2013-01-02 19:05:09 +00:00
2005-12-22 05:18:34 +00:00
2009-05-15 21:00:09 -07:00
2013-01-02 19:05:09 +00:00
2013-01-02 19:05:09 +00:00
2013-02-13 23:30:40 +00:00