punt any 64bit native process in proc_args

This commit is contained in:
Doug MacEachern 2005-09-13 16:30:33 +00:00
parent f11c79da7e
commit 02df1b1697
1 changed files with 7 additions and 0 deletions

View File

@ -708,6 +708,13 @@ int sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid,
procargs->number = procargs->size = 0; procargs->number = procargs->size = 0;
return SIGAR_OK; return SIGAR_OK;
} }
else if (pinfo->pr_dmodel != PR_MODEL_NATIVE) {
/* we are compiled in 32bit mode
* punt any 64bit native process,
* sizeof our structures can't handle.
*/
return EINVAL;
}
argv_size = sizeof(*argvp) * pinfo->pr_argc; argv_size = sizeof(*argvp) * pinfo->pr_argc;