From 2bf1d44f7b1b41777b4bd7957154cba83cb37d69 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Tue, 19 Apr 2011 13:34:18 +0200 Subject: [PATCH] openac: Fixed potential overflow while reading passphrase. --- src/openac/openac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openac/openac.c b/src/openac/openac.c index 086db9e8b..e53567511 100755 --- a/src/openac/openac.c +++ b/src/openac/openac.c @@ -327,7 +327,7 @@ int main(int argc, char **argv) continue; case 'p': /* --key */ - if (strlen(optarg) > BUF_LEN) + if (strlen(optarg) >= BUF_LEN) { usage("passphrase too long"); goto end;