err.copyoutstrbadaddr.ksh revision bd0f52d78d701efcad2c460df61b45677d041c35
/*
*
*
*
*
*/
/*
*/
# 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
}
if [ $# != 1 ]; then
exit 2
fi
dtrace=$1
child=$!
wait $child
status=$?
exit $status