- Fix crash when hitting unknown syscall. Copied from i386-fbsd.c

Approved by:	alfred
This commit is contained in:
pav 2006-05-15 21:03:02 +00:00
parent 815d2ff3a4
commit cb83f3a7fe
5 changed files with 10 additions and 5 deletions

View File

@ -242,7 +242,8 @@ amd64_syscall_entry(struct trussinfo *trussinfo, int nargs) {
* parameter?
*/
if (!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit")) {
if (fsc.name != NULL &&
(!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit"))) {
/* XXX
* This could be done in a more general

View File

@ -219,7 +219,8 @@ i386_linux_syscall_entry(struct trussinfo *trussinfo, int nargs) {
* parameter?
*/
if (!strcmp(fsc.name, "linux_execve") || !strcmp(fsc.name, "exit")) {
if (fsc.name != NULL &&
(!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit"))) {
/* XXX
* This could be done in a more general

View File

@ -219,7 +219,8 @@ i386_linux_syscall_entry(struct trussinfo *trussinfo, int nargs) {
* parameter?
*/
if (!strcmp(fsc.name, "linux_execve") || !strcmp(fsc.name, "exit")) {
if (fsc.name != NULL &&
(!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit"))) {
/* XXX
* This could be done in a more general

View File

@ -223,7 +223,8 @@ ia64_syscall_entry(struct trussinfo *trussinfo, int nargs) {
* parameter?
*/
if (!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit")) {
if (fsc.name != NULL &&
(!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit"))) {
/* XXX
* This could be done in a more general

View File

@ -259,7 +259,8 @@ sparc64_syscall_entry(struct trussinfo *trussinfo, int nargs) {
* parameter?
*/
if (!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit")) {
if (fsc.name != NULL &&
(!strcmp(fsc.name, "execve") || !strcmp(fsc.name, "exit"))) {
/* XXX
* This could be done in a more general