Date: Thu, 4 May 2017 14:54:22 +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-11@freebsd.org Subject: svn commit: r317795 - stable/11/usr.sbin/mixer Message-ID: <201705041454.v44EsMMi011325@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Thu May 4 14:54:22 2017 New Revision: 317795 URL: https://svnweb.freebsd.org/changeset/base/317795 Log: MFC r317596: mixer(8): Prevent possible sscanf() overflow. Fix %s buffer sizes in sscanf(). Obtained from: DragonflyBSD (git dab952e2) Modified: stable/11/usr.sbin/mixer/mixer.c Directory Properties: stable/11/ (props changed) Modified: stable/11/usr.sbin/mixer/mixer.c ============================================================================== --- stable/11/usr.sbin/mixer/mixer.c Thu May 4 14:50:25 2017 (r317794) +++ stable/11/usr.sbin/mixer/mixer.c Thu May 4 14:54:22 2017 (r317795) @@ -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?201705041454.v44EsMMi011325>