Date: Tue, 23 Dec 2003 07:01:12 -0800 (PST) From: Jens Schweikhardt <schweikh@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/pkg_install/lib match.c Message-ID: <200312231501.hBNF1CuO018548@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
schweikh 2003/12/23 07:01:12 PST
FreeBSD src repository
Modified files:
usr.sbin/pkg_install/lib match.c
Log:
Fix a case of undefined behavior due to overlapping buf objects in
snprintf (buf, size, fmt, buf, etc). This only works by chance with our
libc, but fails (with a truncated string) on e.g. glibc.
Okayed by: sobomax
MFC after: 1 week
Revision Changes Path
1.16 +3 -2 src/usr.sbin/pkg_install/lib/match.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312231501.hBNF1CuO018548>
