cvs commit: src/usr.sbin/pkg_install/lib match.c

Jens Schweikhardt schweikh at FreeBSD.org
Tue Dec 23 07:01:13 PST 2003


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


More information about the cvs-src mailing list