Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 May 2017 14:55:07 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r317796 - stable/10/usr.sbin/mixer
Message-ID:  <201705041455.v44Et7nn011426@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Thu May  4 14:55:07 2017
New Revision: 317796
URL: https://svnweb.freebsd.org/changeset/base/317796

Log:
  MFC r317596:
  mixer(8): Prevent possible sscanf() overflow.
  
  Fix %s buffer sizes in sscanf().
  
  Obtained from:	DragonflyBSD (git dab952e2)

Modified:
  stable/10/usr.sbin/mixer/mixer.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.sbin/mixer/mixer.c
==============================================================================
--- stable/10/usr.sbin/mixer/mixer.c	Thu May  4 14:54:22 2017	(r317795)
+++ stable/10/usr.sbin/mixer/mixer.c	Thu May  4 14:55:07 2017	(r317796)
@@ -102,7 +102,7 @@ int
 main(int argc, char *argv[])
 {
 	char	mixer[PATH_MAX] = "/dev/mixer";
-	char	lstr[5], rstr[5];
+	char	lstr[8], rstr[8];
 	char	*name, *eptr;
 	int	devmask = 0, recmask = 0, recsrc = 0, orecsrc;
 	int	dusage = 0, drecsrc = 0, sflag = 0, Sflag = 0;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705041455.v44Et7nn011426>