commit | bdec9cbcebd256dbebf8fd2f7e35dec55b8bd5ae | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Mon Feb 06 17:13:59 2012 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Mon Feb 06 17:13:59 2012 +0000 |
tree | 267dd7e9093cef061dd406870a356415e6ce8948 | |
parent | e752bed4afcd88da082f8b80ca7060d15c59fb16 [diff] |
strace -P: fix handling of invalid syscalls * pathtrace.c (pathtrace_match): Check the given syscall number using SCNO_IN_RANGE.
diff --git a/pathtrace.c b/pathtrace.c index d7ba87c..5fa8be4 100644 --- a/pathtrace.c +++ b/pathtrace.c
@@ -179,6 +179,9 @@ if (selected[0] == NULL) return 1; + if (!SCNO_IN_RANGE(tcp->scno)) + return 0; + s = &sysent[tcp->scno]; if (!(s->sys_flags & (TRACE_FILE | TRACE_DESC)))