Dmitry V. Levin
68d64241ac
* 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.