openac: Fixed potential overflow while reading passphrase.
This commit is contained in:
+1
-1
@@ -327,7 +327,7 @@ int main(int argc, char **argv)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
case 'p': /* --key */
|
case 'p': /* --key */
|
||||||
if (strlen(optarg) > BUF_LEN)
|
if (strlen(optarg) >= BUF_LEN)
|
||||||
{
|
{
|
||||||
usage("passphrase too long");
|
usage("passphrase too long");
|
||||||
goto end;
|
goto end;
|
||||||
|
|||||||
Reference in New Issue
Block a user