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; _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"