Reference:https://github.com/openssh/openssh-portable/commit/02da325f10b --- misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc.c b/misc.c index aa36684..ecd4ca0 100644 --- a/misc.c +++ b/misc.c @@ -537,10 +537,10 @@ convtime(const char *s) default: return -1; } - if (secs >= INT_MAX / multiplier) + if (secs > INT_MAX / multiplier) return -1; secs *= multiplier; - if (total >= INT_MAX - secs) + if (total > INT_MAX - secs) return -1; total += secs; if (total < 0) -- 1.8.3.1