mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-22 22:25:51 +01:00
Fix buffer overlow when checking hashed passwords
svn:r4308
This commit is contained in:
parent
8666f07f65
commit
9f24078452
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue