svn commit: r259820 - stable/10/sbin/swapon

Jilles Tjoelker jilles at FreeBSD.org
Tue Dec 24 13:46:54 UTC 2013


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;
 


More information about the svn-src-stable-10 mailing list