From 747bf887a363094d7900d480d5b9904843008e30 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Jan 2018 22:59:16 +0300 Subject: Fix possible buffer overflow in md5calc.c --- src/elogin/md5calc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elogin/md5calc.c b/src/elogin/md5calc.c index 9bb9460..d5dbed3 100644 --- a/src/elogin/md5calc.c +++ b/src/elogin/md5calc.c @@ -343,7 +343,7 @@ int pass_ok(const char *password, const char *crypted) if (!password || !crypted) return 0; - char buf[40], *salt=buf+1; + char buf[41], *salt = buf + 1; strncpy(buf, crypted, 40); buf[39] = 0; -- cgit v1.2.3-70-g09d2