From: Denys Vlasenko Date: Sat, 23 Feb 2013 17:19:28 +0000 (+0100) Subject: Correct i > MAX_NSYSCALLS commparison: should be i >= MAX_NSYSCALLS X-Git-Tag: v4.8~123 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b43dacd6d15e8d929cf5a20a50c9c09dc51eacf7;p=strace Correct i > MAX_NSYSCALLS commparison: should be i >= MAX_NSYSCALLS Signed-off-by: Denys Vlasenko --- diff --git a/syscall.c b/syscall.c index ef14a0af..120b19bb 100644 --- a/syscall.c +++ b/syscall.c @@ -423,7 +423,7 @@ qual_syscall(const char *s, int bitflag, int not) if (*s >= '0' && *s <= '9') { i = string_to_uint(s); - if (i > MAX_NSYSCALLS) + if (i >= MAX_NSYSCALLS) return -1; qualify_one(i, bitflag, not, -1); return 0;