err.copyoutbadaddr.ksh revision 9512fe850e98fdd448c638ca63fdd92a8a510255
/*
*
*
*
*
*/
/*
*/
#pragma ident "%Z%%M% %I% %E% SMI"
{
/*
* ASSERTION:
* Verify that copyout() handles bad addresses.
*
* SECTION: Actions and Subroutines/copyout()
*
*/
BEGIN
{
ptr = alloca(sizeof (char *));
copyinto(curpsinfo->pr_envp, sizeof (char *), ptr);
copyout(ptr, 0, sizeof (char *));
}
ERROR
{
exit(1)
}
EOF
}
child=$!
wait $child
status=$?
exit $status