mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 08:09:08 +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
5da3574e72
commit
a28caa4777
@ -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