mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 18:56:38 +00:00
swapon: Fix buffer overflow when configuring encrypted swap on GBDE.
PR: bin/184950 Tested by: Radim Kolar MFC after: 3 days
This commit is contained in:
parent
9a2edf0198
commit
1fdb18b01f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259677
|
@ -266,7 +266,8 @@ static const char *
|
|||
swap_on_off_gbde(const char *name, int doingall)
|
||||
{
|
||||
const char *ret;
|
||||
char pass[64 * 2 + 1], bpass[64];
|
||||
char pass[64 * 2 + 1];
|
||||
unsigned char bpass[64];
|
||||
char *dname;
|
||||
int i, error;
|
||||
|
||||
|
|
Loading…
Reference in a new issue