mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +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 New Issue
Block a user