Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/fs/cd9660 Pull up following revision(s) (requested by...
details: https://anonhg.NetBSD.org/src/rev/4548e0f21490
branches: netbsd-8
changeset: 852478:4548e0f21490
user: martin <martin%NetBSD.org@localhost>
date: Sun Aug 04 11:16:26 2019 +0000
description:
Pull up following revision(s) (requested by maxv in ticket #1322):
sys/fs/cd9660/cd9660_vnops.c: revision 1.55
Fix info leak: zero out the buffer, because it is not entirely filled, and
the uninitialized bytes get copied to userland in sys___getdens30(). Remove
unneeded cast while here.
diffstat:
sys/fs/cd9660/cd9660_vnops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 574d3b3fa2c6 -r 4548e0f21490 sys/fs/cd9660/cd9660_vnops.c
--- a/sys/fs/cd9660/cd9660_vnops.c Sun Aug 04 11:12:10 2019 +0000
+++ b/sys/fs/cd9660/cd9660_vnops.c Sun Aug 04 11:16:26 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cd9660_vnops.c,v 1.54 2016/03/12 02:36:25 christos Exp $ */
+/* $NetBSD: cd9660_vnops.c,v 1.54.10.1 2019/08/04 11:16:26 martin Exp $ */
/*-
* Copyright (c) 1994
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cd9660_vnops.c,v 1.54 2016/03/12 02:36:25 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cd9660_vnops.c,v 1.54.10.1 2019/08/04 11:16:26 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -399,7 +399,7 @@
imp = dp->i_mnt;
bmask = imp->im_bmask;
- idp = (struct isoreaddir *)malloc(sizeof(*idp), M_TEMP, M_WAITOK);
+ idp = malloc(sizeof(*idp), M_TEMP, M_WAITOK | M_ZERO);
idp->saveent.d_namlen = idp->assocent.d_namlen = 0;
/*
* XXX
Home |
Main Index |
Thread Index |
Old Index