Author: jilles Date: Tue Dec 24 13:46:54 2013 New Revision: 259820 URL: http://svnweb.freebsd.org/changeset/base/259820
Log: MFC r259677: swapon: Fix buffer overflow when configuring swap on GBDE. PR: bin/184950 Modified: stable/10/sbin/swapon/swapon.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sbin/swapon/swapon.c ============================================================================== --- stable/10/sbin/swapon/swapon.c Tue Dec 24 09:19:49 2013 (r259819) +++ stable/10/sbin/swapon/swapon.c Tue Dec 24 13:46:54 2013 (r259820) @@ -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-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"