- Fix crash when hitting unknown syscall. Copied from i386-fbsd.c
Approved by: alfred
This commit is contained in:
parent
7a0761c19c
commit
1675c32154
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=158626
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user