9512fe850e98fdd448c638ca63fdd92a8a510255ahl * The contents of this file are subject to the terms of the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Common Development and Distribution License (the "License").
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * You may not use this file except in compliance with the License.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * See the License for the specific language governing permissions
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * When distributing Covered Code, include this CDDL HEADER in each
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * If applicable, add the following below this CDDL HEADER, with the
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * fields enclosed by brackets "[]" replaced with your own identifying
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * information: Portions Copyright [yyyy] [name of copyright owner]
bd0f52d78d701efcad2c460df61b45677d041c35jhaslam * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
bd0f52d78d701efcad2c460df61b45677d041c35jhaslam# ident "%Z%%M% %I% %E% SMI"
9512fe850e98fdd448c638ca63fdd92a8a510255ahl $dtrace -w -s /dev/stdin <<EOF
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * ASSERTION:
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * Verify that copyout() handles bad addresses.
9512fe850e98fdd448c638ca63fdd92a8a510255ahl * SECTION: Actions and Subroutines/copyout()
9512fe850e98fdd448c638ca63fdd92a8a510255ahl ptr = alloca(sizeof (char *));
9512fe850e98fdd448c638ca63fdd92a8a510255ahl copyinto(curpsinfo->pr_envp, sizeof (char *), ptr);
9512fe850e98fdd448c638ca63fdd92a8a510255ahl copyout(ptr, 0, sizeof (char *));
23b5c241225a8ade2b6b9f06ebb891ee459e3b02tomeeif [ $# != 1 ]; then