svn commit: r259677 - head/sbin/swapon
Jilles Tjoelker
jilles at FreeBSD.org
Sat Dec 21 11:59:59 UTC 2013
Author: jilles
Date: Sat Dec 21 11:59:58 2013
New Revision: 259677
URL: http://svnweb.freebsd.org/changeset/base/259677
Log:
swapon: Fix buffer overflow when configuring encrypted swap on GBDE.
PR: bin/184950
Tested by: Radim Kolar
MFC after: 3 days
Modified:
head/sbin/swapon/swapon.c
Modified: head/sbin/swapon/swapon.c
==============================================================================
--- head/sbin/swapon/swapon.c Sat Dec 21 04:31:54 2013 (r259676)
+++ head/sbin/swapon/swapon.c Sat Dec 21 11:59:58 2013 (r259677)
@@ -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;
More information about the svn-src-all
mailing list