From 02df1b1697140f400e3fb0f78b366ff3ad03d912 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 13 Sep 2005 16:30:33 +0000 Subject: [PATCH] punt any 64bit native process in proc_args --- src/os/solaris/solaris_sigar.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index fd235745..dacf702c 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -708,6 +708,13 @@ int sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid, procargs->number = procargs->size = 0; 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;