diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2013-12-14 02:57:26 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2013-12-14 02:57:26 +0000 |
commit | a137de4374963ad1da2b099f4bb39d9c58df69e0 (patch) | |
tree | 0eb7fa6cf6c9cd7375473607284d223825a216fb /sys/msdosfs | |
parent | 53a5840ac2887725f5afe558a788a62d315eca4b (diff) |
Zero out dirent structures that will be copied out to avoid leaking garbage
in the padding or trailing name bytes.
ok beck@ millert@ espie@
Diffstat (limited to 'sys/msdosfs')
-rw-r--r-- | sys/msdosfs/msdosfs_vnops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c index 0cd3f8736f7..581c4174741 100644 --- a/sys/msdosfs/msdosfs_vnops.c +++ b/sys/msdosfs/msdosfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vnops.c,v 1.90 2013/10/01 20:22:13 sf Exp $ */ +/* $OpenBSD: msdosfs_vnops.c,v 1.91 2013/12/14 02:57:25 guenther Exp $ */ /* $NetBSD: msdosfs_vnops.c,v 1.63 1997/10/17 11:24:19 ws Exp $ */ /*- @@ -1497,7 +1497,7 @@ msdosfs_readdir(void *v) /* * To be safe, initialize dirbuf */ - bzero(dirbuf.d_name, sizeof(dirbuf.d_name)); + bzero(&dirbuf, sizeof(dirbuf)); /* * If the user buffer is smaller than the size of one dos directory |