mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Fix buffer overlow when checking hashed passwords
svn:r4308
This commit is contained in:
parent
8666f07f65
commit
9f24078452
@ -481,7 +481,7 @@ decode_hashed_password(char *buf, const char *hashed)
|
||||
}
|
||||
}
|
||||
if (buf)
|
||||
memcpy(buf, decoded, sizeof(decoded));
|
||||
memcpy(buf, decoded, S2K_SPECIFIER_LEN+DIGEST_LEN);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user