summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-01-16 22:59:16 +0300
committerAndrei Karas <akaras@inbox.ru>2018-01-16 22:59:16 +0300
commit747bf887a363094d7900d480d5b9904843008e30 (patch)
tree56f4d2cfceb2e7023380950bb61bc806c94643d6 /src
parente462513db20365c4a36e32013a3e48b00a1d2b87 (diff)
downloadplugin-747bf887a363094d7900d480d5b9904843008e30.tar.gz
plugin-747bf887a363094d7900d480d5b9904843008e30.tar.bz2
plugin-747bf887a363094d7900d480d5b9904843008e30.tar.xz
plugin-747bf887a363094d7900d480d5b9904843008e30.zip
Fix possible buffer overflow in md5calc.cs20180208
Diffstat (limited to 'src')
-rw-r--r--src/elogin/md5calc.c2
1 files changed, 1 insertions, 1 deletions
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;