commit | 68d64241ac8e8c49f950fef506099f093fc6fa18 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Wed Sep 10 00:07:32 2014 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Thu Sep 11 22:27:43 2014 +0000 |
tree | d94f79b381ae38ef003fc69de097787ad89371ba | |
parent | 1e42f2dbe721f7cb1e4bdfc9103bf358b4a443c1 [diff] |
getdents, getdents64: fix potential out-of-bounds read issues * file.c (sys_getdents): Check for invalid d_reclen. Avoid reading from uninitialized memory. (sys_getdents64): Likewise. * tests/getdents.awk: New file. * tests/getdents.test: New test. * tests/Makefile.am (TESTS): Add it. (EXTRA_DIST): Add getdents.awk.