Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/compat/linux/common Pull up revision 1.29 (requeste...
details: https://anonhg.NetBSD.org/src/rev/6d10e15cf04b
branches: netbsd-1-4
changeset: 470889:6d10e15cf04b
user: he <he%NetBSD.org@localhost>
date: Sat Sep 09 15:54:38 2000 +0000
description:
Pull up revision 1.29 (requested by simonb):
More carefully check length of user-supplied data, in particular
make sure we don't overrun the available stack gap in stack gap
allocations.
diffstat:
sys/compat/linux/common/linux_file.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 2f68723d9050 -r 6d10e15cf04b sys/compat/linux/common/linux_file.c
--- a/sys/compat/linux/common/linux_file.c Sat Sep 09 15:54:17 2000 +0000
+++ b/sys/compat/linux/common/linux_file.c Sat Sep 09 15:54:38 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_file.c,v 1.27 1999/02/09 20:37:19 christos Exp $ */
+/* $NetBSD: linux_file.c,v 1.27.2.1 2000/09/09 15:54:38 he Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -494,10 +494,9 @@
struct linux_sys_stat_args *uap = v;
sg = stackgap_init(p->p_emul);
-
+ st = stackgap_alloc(&sg, sizeof (struct stat));
LINUX_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
- st = stackgap_alloc(&sg, sizeof (struct stat));
SCARG(&sa, ub) = st;
SCARG(&sa, path) = SCARG(uap, path);
Home |
Main Index |
Thread Index |
Old Index